<p>In a microservice environment, if multiple instances of the same pod are present, will separate classes be created for each instance or the class resource is read from a common place for both the instances?</p>
<p>I was thinking since Static Synchronized method locks the class level we can prevent race condition. Any input would be helpful.</p>

Pramod Bhat
<p>The 'static' or 'synchronized' keywords apply only for a single process.
As soon as you run multiple instances it won't help, no matter if on the same machine, same container or different containers/pods or machines.</p>
<p>This might be helpful as alternative: <a href="https://www.jobrunr.io/en/" rel="nofollow noreferrer">https://www.jobrunr.io/en/</a> or <a href="https://github.com/lukas-krecan/ShedLock" rel="nofollow noreferrer">https://github.com/lukas-krecan/ShedLock</a></p>
