,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 ?
Based on your questions I don't think you should be setting up anything AWS. AWS and other cloud services are enterprise grade systems that are very powerful, but they're also very complex. AWS professionals have typically studied AWS for hundreds of hours and worked in the area for years to get good at it. If you put things up in AWS, Azure, Google you're going to have problems getting it going, scaling it, and securing it.
I suggest you use a service provider, or at least hire someone to do it for you, otherwise you will find you have problems now or in the future.
To answer your questions though: