Multiple applications on same environment of Elastic Beanstalk

0

Hi I am trying to deploy two web apps on elastic beanstalk. Both are implemented with Python, one for data collection and one for data preview. Here are my two solutions:

  1. Two apps on same environment, therefore they shared the local data;
  2. Two environment connected to same database. However, it seems like each environment could only serve one single Web App? Just wonder if anyone got the same problem and any suggestions, many thanks in advance!
已提问 2 年前1518 查看次数
1 回答
0

The second solution looks like more plausible. You can opt to use a database environment outside your Beanstalk, in fact that is the more recommended approach (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.RDS.html).

If both data collection and data preview app are meant to be separate apps, you actually can deploy them as 2 "application" in Beanstalk, each connected to the same database instance. These 2 application can have separate environments if you need dev/staging/prod version. And each environment you can design your web app to be scalable using load-balancers.

profile pictureAWS
已回答 2 年前
  • Two applications would mean two separate EC2 instances? Is there a way to do this where it will use the existing EC instances and load balancer?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则