from Hacker News

Ask HN: Is there any service on AWS that enables *INSTANT* deployment?

by boronine on 9/7/24, 11:50 PM with 8 comments

My use case is a singleton HTTP server (no horizontal scaling). I already tried ECS, App Runner, Elastic Beanstalk among other tools. Every deployment option has minute+ downtime or otherwise takes minutes to complete. Is there any option on AWS to achieve instant deploy like Heroku? I simply want to restart my app with new code / new configuration.
  • by ibash on 9/8/24, 12:14 AM

    If you don’t need to scale and you want something simple you might try rolling your own blue/green deployment using nginx or haproxy.

    The basic idea is that traffic gets served by nginx or haproxy and forwarded to your app server. When you deploy another app server and background process gets spun up. Then when the new app server is ready you have nginx/haproxy switch where it’s forwarding traffic.

    You can do this on a regular vm and skip all the extra tooling.

  • by fragmede on 9/8/24, 12:20 AM

    If Heroku has what you want, why not just use them? Why waste time/money/energy/effort trying to make Amazon into Heroku?
  • by znpy on 9/8/24, 12:02 AM

    Ecs should do what you want, you’re probably using it wrong. You should probably boot the new app first release and then shut down the old one.

    In this way whether the startup takes one or 10 minutes is irrelevant

  • by JSDevOps on 9/7/24, 11:57 PM

    Docker on an EC2
  • by nathants on 9/8/24, 10:55 PM

    lambda update zip. few seconds.