{"id":25026283,"url":"https://github.com/pavanpadamata26/singletondesignpattern","last_synced_at":"2026-02-06T01:44:34.517Z","repository":{"id":270605251,"uuid":"910875875","full_name":"pavanpadamata26/SingletonDesignPattern","owner":"pavanpadamata26","description":"This repository implements the Singleton Design Pattern for managing a thread-safe, centralized database connection pool. The design ensures only one instance of the connection pool exists during the application’s lifecycle, optimizing resource usage and performance.","archived":false,"fork":false,"pushed_at":"2025-01-01T18:13:27.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T12:58:55.122Z","etag":null,"topics":["designpatterns","java","sql"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pavanpadamata26.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-01T17:44:40.000Z","updated_at":"2025-01-01T18:15:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4f3daa5-253d-4a1e-8c3b-eaeddab059de","html_url":"https://github.com/pavanpadamata26/SingletonDesignPattern","commit_stats":null,"previous_names":["pavanpadamata26/singletondesignpattern"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pavanpadamata26/SingletonDesignPattern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavanpadamata26%2FSingletonDesignPattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavanpadamata26%2FSingletonDesignPattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavanpadamata26%2FSingletonDesignPattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavanpadamata26%2FSingletonDesignPattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pavanpadamata26","download_url":"https://codeload.github.com/pavanpadamata26/SingletonDesignPattern/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavanpadamata26%2FSingletonDesignPattern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29144210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T01:13:33.096Z","status":"ssl_error","status_checked_at":"2026-02-06T01:11:47.313Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["designpatterns","java","sql"],"created_at":"2025-02-05T17:35:54.443Z","updated_at":"2026-02-06T01:44:34.497Z","avatar_url":"https://github.com/pavanpadamata26.png","language":"Java","readme":"This repository implements the Singleton Design Pattern for managing a thread-safe, centralized database connection pool. The design ensures only one instance of the connection pool exists during the application’s lifecycle, optimizing resource usage and performance. Key Features: Singleton Pattern: Guarantees a single instance of the connection pool, avoiding multiple instances and unnecessary resource consumption.\n\nConnection Pooling: Maintains a fixed number of database connections, reusing them efficiently, with a default pool size of 5. Connections are checked out and returned to the pool, reducing connection creation overhead.\n\nThread Safety: Supports multi-threaded applications by ensuring that multiple threads can safely access the connection pool without causing conflicts.\n\nLazy Initialization: The connection pool is initialized only when needed, reducing unnecessary resource allocation. Usage: Initialize the Pool: The connection pool is created when DatabaseConnectionPool.getInstance() is called. Get a Connection: Use getConnection() to retrieve an available connection from the pool. Execute Operations: Use the retrieved connection for database queries or updates. Release Connection: After the operation, call releaseConnection() to return the connection to the pool.\n\nTechnologies Used: Java, JDBC (MySQL)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavanpadamata26%2Fsingletondesignpattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpavanpadamata26%2Fsingletondesignpattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavanpadamata26%2Fsingletondesignpattern/lists"}