4 ms·
Is using a host that doesn't do this not a possibility?
by jryb 3y ago
Is using a host that doesn't do this not a possibility?
- windowshopping 3y agoIt seems they all do, though. Digital ocean was the same.
- Tijdreiziger 3y agoAny decent VPS provider (including DigitalOcean, unless they’ve changed anything) definitely doesn’t do this.
- windowshopping 3y agoMaybe you're right, I may be mistaken. Perhaps I should migrate to DO.
- Tijdreiziger 3y agoActually, I should qualify this. If you use a PaaS (platform as a service, e.g. Heroku, DO App Platform, AWS EB), they might assume your app to be stateless and do things like restart it at will. If you use a VPS (virtual private server, e.g. DO Droplet, AWS EC2), this certainly shouldn’t happen, but of course it requires some Linux skills to maintain your VPS. So it’s basically a trade-off between engineering your app to fit a PaaS or hand-managing your VMs (though the latter is usually the cheaper option).
- windowshopping 3y agoYeah, indeed. I can try using a Droplet but I'm just new to managing a VM by hand. I've always used a PaaS for my projects so ensuring uptime and whatever other responsibilities there may be is new for me.
- svnt 3y agoIf that’s the case I’d suggest you probably have a bug in your code somewhere that depends on a timer that resets at midnight. So when it spans midnight everything resets, but this isn’t the server resetting.
- loloquwowndueo 3y agoData persistence is a solved problem. “Server that never fails or reboots” is not.