TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Should I Use AWS Elastic Beanstalk for a Django Application?

1 点作者 twillin超过 7 年前
I&#x27;m building an app with django, and am trying to decide whether or not to use Elastic Beanstalk on AWS, with the alternative being just an EC2 instance. The app will contain PHI, but that shouldn&#x27;t affect the use of Elastic Beanstalk. What are your thoughts? Do you see any clear advantages to one over the other?<p>Thanks!

1 comment

binarynate超过 7 年前
I use Elastic Beanstalk for my projects, and I really like it because makes deploying code much simpler and easier than managing my own EC2 instances. This is especially handy for rapid prototyping, when you want to get something out quickly in order to test a product idea. When I want to deploy a new version of my code, I just run a script to compress the app into a zip file, and then give that to Beanstalk to deploy. I use Node.js instead of Django, but I expect that the workflow is the same.<p>You choose to run your Beanstalk app in one of these modes: - route all traffic to a single instance without a load balancer (the cheap option) - auto-scale instances behind an Elastic Load Balancer (the scalable option)<p>One of the things I like about Beanstalk is that switching between these two modes is quick and easy. So, you can initially go with the cheap option to save money and then switch to the auto-scaling mode once you need it.<p>If you&#x27;re developing APIs, I also recommend considering Lambda. I plan to use Lambda + API Gateway for my next project, since you only pay for the usage of when your lambda functions are executed (as opposed to paying for your EC2 instances to be up all the time, even when they&#x27;re not used), and they can scale more quickly than spinning up new EC2 instances.
评论 #15103730 未加载