DEV Community

Discussion on: Node vs PHP

Collapse
 
razbakov profile image
Aleksey Razbakov

Let's say you need to write a newsletter system that would send email to 1k users weekly. Would you write this script in Javascript or PHP? Would you use any framework for that? What would your cronjob look like?

Collapse
 
chrisrichter profile image
chris-richter

I do something like that from firebase using AWS-SES with a nodejs cloud function (like lamda in AWS). I don't use the cloud scheduler for it, but that certainly could be done.

Similar logic lives in other functions that use pubsub for transactional emails and alerts.

The farther I can get away from email tasks and servers, the better. 1,000 emails is $0.10.