You can achieve this pattern of microservice deployment using the following methods:
Deploying multiple instances of microservices on the same Apache Tomcat server or in the same JVM
Deploying an instance of a microservice as a JVM process or on an Apache Tomcat server, such as a Tomcat instance, per service instance
This pattern has the following benefits:
It has more efficient resource utilization than other approaches
Deploying a service instance is relatively fast
However, this approach also has the following disadvantages:
There is no isolation between the instances of microservices; therefore, a defective service instance could produce noise or affect other services in the same process
It could create conflict over resource utilization between instances of microservices
It could also cause problems due to a conflict between versions
We can't assign a specific amount of resource utilization, nor can we increase the resource capacity for a specific instance of microservices
It is also difficult to monitor resource utilization independently for one instance of a microservice