Hacker News new | ask | show | jobs
by iakov 1297 days ago
This is hilarious. Do you really propose to rebuild front end application every hour, tens to hundreds of pages, just to get the new exchange rate in the app? New tools have new ways to solve things, and this is the case where the new way makes much more sense - it is built in the stack, it scales well, and it solves the problem.

This sounds like an old man with a hammer, reminiscing of times where every single problem was a nail. True, hammer works for the threaded wood screws somewhat, but the new engineers with their electric screwdrivers are more efficient and build sturdier things.

Even if you are hell-bent on doing stuff the Linux way why not propose a pair of Systemd service and timer? At least there will be logs. Cron is such an antiquated way of doing things.

1 comments

The discussion was regarding periodic updates. I think you are mis-reading it. I am pointing out periodic execution logic does not need to be in your request handling or app logic, you are well advised to leave it as a separate task and schedule it. cron is the traditional way. You can do it another way. But you know, use a small piece of code with no dependencies and a clearly defined scope and purpose. Use the filesystem. Use a file. Dates come free. Readable in all environments. Very manageable. Simple is best. Maybe you haven't had that epiphany yet? It's a good one.