david
david

Reputation: 3360

AWS Elastic Beanstalk: What is the difference between environment and application?

I have an application with two clients: web and mobile (both android and iOS).

Should I create:

  1. Two applications (web and mobile) with one environment each
  2. One application with two environments (web and mobile)

What is the best option?

Upvotes: 11

Views: 2029

Answers (2)

Kappacake
Kappacake

Reputation: 1937

Elastic Beanstalk (EB) is supposed to host one application. Therefore, if the different clients are two different applications (have different code, rather than just different "historical" version of the same code), they should be on two different EB applications, each with its own set of environments (you could have development, pre-production and produciton environments for example).

Upvotes: 5

Bryan
Bryan

Reputation: 95

Having been in this situation recently I think it's mostly personal preference. I prefer to separate them out as much as possible in the case that service impacting maintenance that involves only one role wont interfere with the other role.

Example: If you need to do maintenance on your web server role, you don't need to worry about your mobile app servers at all.

Upvotes: 1

Related Questions