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 年前檢視次數 1476 次
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?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南