jvm - Java application in memory alternative to move the application to stateless - Stack Overflow

admin2025-04-29  2

I have an application which runs on a single server, The application processes some information while keeping them in collection Maps and Lists.

I am working on containerizing this application and want to run 4 containers at the same time. Now if i move this to multi containers then each instance will hold its own copy of Maps and Lists, which will defeat the purpose. what i want is that this critical data in Maps and List should be shared between all the instances (and in synch).

One possibility is to move these maps and lists data to database, but that would cost a lot of time to response. What are the other alternatives that i can use, in this situation ?

转载请注明原文地址:http://anycun.com/QandA/1745857262a91298.html