1 How and when did you decide to create different instances of the same application?
If, for example, you want the application to be located next to the user, then you can deploy one of them on a server in Asia, one in the EMEA region and in the USA. When your user tries to access it, you direct them to the server closest to you, and they can get the most responsive user experience.
Now - this is impossible in all cases, as if you were sharing data (for example, if you were a bank), then you would need to manage the data in such a way that they are consistent between the three instances of your application. This, though, may be a topic for another question.
2: The same specific implementation. This is usually used when you access an abstract class and select a specific implementation of the class. For example, if you have an abstract class "Car" and there is a specific implementation that implements if "Ferrari".
In this case, he uses the same terminology, but not so often. When a text refers to a specific embodiment in this context, it says that it is the same program. those. you copy and paste ".exe" and start it again. In Java terms, you must copy the same ".jar" files and execute them.
However, in this case you can do it on different machines or, as indicated, you can run them on the same computer, and if you look in memory, you will see three separate Java processes.
source share