We have a backend application with Spring IOC with Jersey REST. All the spring beans we define use default scope, I mean, singleton.
This application is DB-centric with huge number of users. My question: how spring singleton beans manage the concurrency over this application? None of the methods in service classes are defined as synchronized, but we never get any issues with user data synchronization. Everything looks perfectly OK.
I think I am missing something about the spring singleton beans or how spring handles multiple requests with singleton object.
As per my understanding as spring beans are singletons and no service methods are defined as synchronized, there must be some synchronization issues with multiple requests.
Can you help me understand this thing properly?