2021年3月10日星期三

I want to deploy a multi-tier web app into AWS but don't understand how to set it up

I was hoping someone may be able to explain how I would setup a multi-tiered web application. There will be a database tier, app tier, web server tier and then the client tier. I'm not exactly sure how to separate the app tier and web server tier since the app tier will be in a private subnet. I would have the client send the request directly to the app server but the private net is a requirement. And having the app server separated from the web server is a requirement as well. I already have it setup so the app and db can talk to each other.

The only idea I have had was to serve the content on the web server and then the client will send all requests to the same web server on another port. Like port 3000, if a request is captured on that port, a node app using express will forward the request to the app tier since the web server can speak to the app server.

I did setup a small proof of concept doing this. The web server serves the content, then I have another express app setup to listen on port 3000, the client sends the request on port 3000 and then it just sends the exact same thing back to the app server.

But there must be a better way to do this, right?

https://stackoverflow.com/questions/66575501/i-want-to-deploy-a-multi-tier-web-app-into-aws-but-dont-understand-how-to-set-i March 11, 2021 at 10:07AM

没有评论:

发表评论