4 ms·
I recommend just writing a Docker container instead. That's the ultimately portability and you can run in much more efficient environments (Cloud Run, Fargate,
by manigandham 6y ago
I recommend just writing a Docker container instead. That's the ultimately portability and you can run in much more efficient environments (Cloud Run, Fargate, DigitalOcean Apps, Fly.io) and still scale up to large Kubernetes-based clusters if/when you need it.
Docker containers avoid the lock-in of a particular platform or CLI, and they can also be used as cheap CI/CD with multi-stage builds within the container.
- OJFord 6y agoAnd also Heroku. I'm not disagreeing, just saying Heroku becomes 'just another platform', and if it still looks expensive, you can go elsewhere, if it's cheaper/better in some way (I have no idea nor horses) then go with it.
- stickfigure 6y agoDocker means you're maintaining an operating system, watching out for security vulnerabilities, patching software. It's still work, and if you screw it up, you're hosed. If you're on Heroku or Google App Engine, you deploy your application code. That's it.
- manigandham 6y agoDocker containers (on Linux) don't have a guest OS. They all share the same kernel and only the userland is different depending on which distro you choose for your base. You can choose to build on a scratch/blank image just as easily, which means nothing except your app itself is in the image.
- ornornor 6y agoYou still have to update the packages or distro your image is based on. It’s not as maintenance free as heroku or google app engine.
- manigandham 6y agoSure, but you can get the latest image automatically as part of your container build. It's not as hard as it seems. Or you can build an image from scratch without any distro and then there's nothing to maintain.
- danjac 6y agoYou can deploy Docker containers to Heroku. I've done this (just requires a simple heroku.yml file and heroku stack:set container). If the project grows to the size where Heroku's costs become prohibitive, I can easily switch over to Digital Ocean with some tweaks to the docker config.
- manigandham 6y agoWhy not just save the money and start elsewhere?
- danjac 6y agoMost of my side projects never go beyond needing heroku free tier, and if they gain some traction the basic tier is usually sufficient.