3 ms·
> Even if you want a simple cron job ..., you can't do it with serverless functions. I don't understand this. Can't you have a AWS lambda run on a timer, for e
by robertlagrant 3y ago
> Even if you want a simple cron job ..., you can't do it with serverless functions.
I don't understand this. Can't you have a AWS lambda run on a timer, for example?
- senttoschool 3y agoYea, you can. It's just not as simple. In addition, lambdas have time limits so many longer running cron jobs won't work. How about web sockets? Simple queue? Simple cache? There are many things that you can quickly and easily do with a server that you'd have to reach for 3rd party services to do with serverless. That adds complexity and cost. This is why I advocate for servers when you're trying to build a product for the first time and serverless if you have a special need.
- robertlagrant 3y agoThat's true. On queues, websockets, etc, it might be worth checking out Cloudflare workers durable objects[0]. I've never had to use them, but I wish I had the chance, as they look like a really interesting building block. [0] https://developers.cloudflare.com/workers/learning/using-durable-objects https://developers.cloudflare.com/workers/learning/using-dur...