
- Client
- Primary Server (PS)
- Machine with the Secondary and Tertiary Servers
- Tomcat running CJCMA
- Tomcat running CJNMA
- Tomcat running the user’s .wars
- CJCMA
- CJNMA
- User’s .war
- Client request
- Client request routed to tertiary server that is the node tomcat
Execution flow
This is where the cluster system magic happens.
The client request the execution of an endpoint in his .war and that request is routed to the machine with more resources available:
- The client sends a request to the PS in the proper format
- The PS receives the request
- The PS loops the nodes in the cluster
- The node installed in the machine with more resources available is selected
- The PS sends a request to the selected node
- The node returns a response to the PS
- The PS return the response to the client