top | item 42524035

(no title)

lgessler | 1 year ago

With all respect and love to the OP, I must admit that I laughed out loud when I saw the AWS architectural diagram and wondered whether this might be a joke. Personally, I'd have implemented this as a few dozen lines of Python living as a cron job (or even as a long-lived process with a schedule), but I'm no pedigreed engineer.

discuss

order

tr97|1 year ago

Fair enough! As mentioned earlier, one reason I used AWS/Terraform is for personal learning. It may not be the most efficient approach, but I built it this way because it was the most enjoyable for me. :)

delduca|1 year ago

I do the same on my personal projects. Big over engineering projects for learning purposes :-)

namaria|1 year ago

If you're using Terraform on AWS as a learning experience I hope you're using a pre-paid card.

jedberg|1 year ago

> With all respect and love to the OP, I must admit that I laughed out loud when I saw the AWS architectural diagram

OP actually did it more efficiently than most! You should see the AWS suggested architecture. It uses something like 10 different AWS services.

My company actually set out to solve this very problem. We have a cloud cron hosting that's more reliable than the AWS architecture but just requires a few lines of code. Literally this is all you have to do:

    @DBOS.scheduled('* * * * *')
    
    @DBOS.workflow()
    def example_scheduled_workflow(scheduled_time: datetime, actual_time: datetime):
      DBOS.logger.info("I am a workflow scheduled to run once a minute.")
https://github.com/dbos-inc/dbos-demo-apps/blob/main/python/...

huijzer|1 year ago

I think this is where Cloudflare shines. They just focussed on the essentials with Workers (“serverless”) at the core of everything instead of VPS at the core of everything.

QuinnyPig|1 year ago

You’re not kidding about AWS’s own architecture diagrams.

IanCal|1 year ago

Although if you drew that out you'd have about the same.

Cron trigger.

Process.

Gpt API.

Database for persistence.

Email sender.

Which part of that wouldn't you have?

singron|1 year ago

This is a great fit for Google AppScript.

behnamoh|1 year ago

Who likes to learn a niche scripting language that only works on one platform?