,Hi everybody. At the moment I am looking for a good way to host my MERN Stack application and found that Cloud Hosting via AWS would be a great solution. Before proceeding I wanted to clarify some questions of understanding how Cloud Hosting works.
What I have understood is that Cloud Hosting is based on instances that are running somewhere in the AWS System. In the case that I wanted to increase the performance of my hosted app I could add another instance so that there would be two instances running for my app.
When users open my website, how is the traffic split between my two instances? Normally my domain would link to the IP address of one instance, but wouldn't the other instance be unreachable then?
My database would be running on each instance separately, right? How could I make one database used by all other instances?
Thanks in advance! I appreciate any help ?