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

Construction Result Summary Jun-2019