Friday, July 9, 2021

I Am Using Singleton Pattern And Found That Two Objects Are Created , How Is It Possible?

If you have multiple worker processes configured then not all of the requests are handled by the same process and thus not the same singleton. so if multiple singleton are handling requests then obviously multiple objects will be created.

No comments:

Post a Comment

Featured Post

LATEST MARKET IMPACT SUMMARY - AUGUST 29, 2025

LATEST MARKET IMPACT SUMMARY - AUGUST 29, 2025 DIRECT MARKET MOVEMENTS Current Market Status: Nifty50 opens in green; BSE...