News for hackers. Stuff that matters.
Re:I send myself automated emails to practice Dutch by lgessler on Friday December 27, 2024 @12:23PM (#42524035)
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.
Re:I send myself automated emails to practice Dutch by tr97 on Friday December 27, 2024 @12:44PM (#42524251)
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. :)
Re:I send myself automated emails to practice Dutch by delduca on Friday December 27, 2024 @01:02PM (#42524408)
I do the same on my personal projects. Big over engineering projects for learning purposes :-)
Re:I send myself automated emails to practice Dutch by namaria on Sunday December 29, 2024 @05:30AM (#42539069)
If you're using Terraform on AWS as a learning experience I hope you're using a pre-paid card.
Re:I send myself automated emails to practice Dutch by jedberg on Friday December 27, 2024 @01:42PM (#42524771)
> 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/...
Re:I send myself automated emails to practice Dutch by huijzer on Friday December 27, 2024 @01:54PM (#42524898)
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.
Re:I send myself automated emails to practice Dutch by jedberg on Friday December 27, 2024 @01:58PM (#42524950)
Yes, DBOS has a similar philosophy. Strip away all the hard and annoying parts, let you just code. Our other philosophy is "just do it in Postgres". :)

FWIW you can't really do the same thing on Cloudflare workers -- their crons are "best effort", and you'd still need to get storage somewhere else. With DBOS the storage is built right in.

Re:I send myself automated emails to practice Dutch by piperswe on Friday December 27, 2024 @03:40PM (#42525848)
Cloudflare Durable Objects have alarms you can use to imitate cron, and have storage built-in (there's even support for SQLite databases attached to DOs in beta)
Re:I send myself automated emails to practice Dutch by QuinnyPig on Friday December 27, 2024 @01:47PM (#42524812)
You’re not kidding about AWS’s own architecture diagrams.
Re:I send myself automated emails to practice Dutch by IanCal on Friday December 27, 2024 @02:39PM (#42525333)
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?

Re:I send myself automated emails to practice Dutch by singron on Friday December 27, 2024 @02:02PM (#42525006)
This is a great fit for Google AppScript.
Re:I send myself automated emails to practice Dutch by behnamoh on Friday December 27, 2024 @02:10PM (#42525084)
Who likes to learn a niche scripting language that only works on one platform?
Re:I send myself automated emails to practice Dutch by singron on Saturday December 28, 2024 @08:39PM (#42536640)
It's ordinary javascript. It interacts with many google services including gmail without having to actually maintain servers or setup authentication. It's perfect for small little glue tasks like sending yourself emails or anything that interacts with Sheets. You wouldn't use it if you weren't trying to use a Google service.