title: singleton pattern for microservices
body: <p>As per definintion of singleton pattern &quot;
  Ensure a class has only one instance, and provide a global point of access to it.
  Encapsulated &quot;just-in-time initialization&quot; or &quot;initialization on first use&quot;.&quot;
  How to create a Singleton object for distributed microservices using spring?</p>