Skip to content

Chandwani-13/Singleton-Design-Pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Singleton-Design-Pattern

Design Pattern : Singleton Design Pattern

Definition

The Singleton Pattern is a creational design pattern that ensures a class has only one instance and provides a single point of access to it globally. It is commonly used in scenarios involving shared resources like database connections, configuration settings, etc.

πŸ“š Benefits of Singleton

  1. Controlled access to a single instance
  2. Reduces memory footprint
  3. Useful for shared resources like config managers, logging, thread pools, etc.

πŸ“Œ When to Use

  1. Logging classes
  2. Configuration managers
  3. Caching
  4. Database connection pools

About

Design Pattern : Singleton Design Pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages