How to connect From Web Server to Database Server via App Server
I developed a web application in spring boot which can deployed from a webserver in tomcat and connects to database server directly.But now I have to switch to a another database which is not accessible from the webserver.So I was advised to follow the pattern
Web Server -> App Server -> Database Server
But I am not sure How to convert my web app into this format.Becuse current my format is
Web Server -> Database Server
Could anyone explain how to implement this.Any help is appreciated?
You have some misunderstanding with Web Server and Application Server. Read more at What is the difference between application server and web server?
The communication structure would be something like
Edge Server -> Internal Server -> Database
Now, your problem can be resolved by moving your current api to internal server which can directly connect to DB and create a pseudo api in Edge Server which just calls the api from Internal Server and sends response back to the client.
Pseudo API -> Actual API -> Database
链接地址: http://www.djcxy.com/p/96426.html上一篇: Docker作为Web服务的代理服务器