Simply say a few noun
nginx It is a reverse proxy, which is actually a proxy server responsible for forwarding, seemingly acting as a real server function, but in fact not, proxy server just acted as a forwarding role, And from the real server to obtain the returned data, this is Nginx's work content
Tomcat Open source Web server
Oracle Database
A brief introduction to the Nginx load balancer of the
redis cache System 1 shows that the client initiates the request and, after the Nginx proxy, forwards the request on average to the server according to the weight
Introduction to Hot deployment in general we only have 1 tomcat, if you need a code package, you need to turn Tomcat off, if the user at this time to access the platform, the browser will prompt 502 status code, in order to avoid users can not access the platform, there is a Tomcat hot deployment, Prepare at least 2 tomcat, and close one of the tomcat when the package is updated, at which point the user's request comes in, because of load balancing, the request is automatically assigned to the running
Figure 1, 2 is a load-balanced legend (the graph all comes to the network)
Figure 1
Figure 2 There is a problem although there is a hot deployment, but if a user requests to come in, when updating the code package, just in response to the Tomcat is closed, the user in the UI will also prompt request 502, this is inevitable
From for notes (Wiz)
Nginx Load balancer and Tomcat thermal deployment easy to understand