Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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?



Yea, 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.


That'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-dur...




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: