Demystifying Connection Pools: A Deep Dive
Open Source For You|August 2023
By understanding the inner workings of connection pooling and building your own pools, you will be able to build more reliable and high-performing applications, especially at scale. This first part of a two-part series demystifies the magic of connection pooling.
Pratik Shivaraikar
Demystifying Connection Pools: A Deep Dive

If you’re a software engineer, you’ve likely encountered the need to manage database connections efficiently. That’s where connection pooling comes in! Connection pools are a critical aspect of software engineering. They allow applications to efficiently manage connections to a database or any other system. If your application requires constant access to a system, establishing a new connection to the system for every request can quickly become resource-intensive, causing the application to slow down or even crash. This is where connection pools come in.

As engineers, we often don’t spend a lot of time thinking about connections. A single connection is typically inexpensive. However, as things scale up, the costs of creating and maintaining these connections increase accordingly. This is why I believe understanding the world of connection pooling is important. It will enable us to build more performant and reliable applications, especially at scale.

Typical connections

Before jumping to connection pooling, let us understand how an application typically connects to a system to perform any operation:

1. The application attempts to open a connection.

2. A network socket is opened to connect the application to the system.

3. Authentication is performed. 

4. The operation is performed.

5. The connection is closed. 

6. The socket is closed.

Denne historien er fra August 2023-utgaven av Open Source For You.

Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.

Denne historien er fra August 2023-utgaven av Open Source For You.

Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.

FLERE HISTORIER FRA OPEN SOURCE FOR YOUSe alt
Not Investing in a Cloud Security Program can be Expensive
Open Source For You

Not Investing in a Cloud Security Program can be Expensive

A well-planned cloud security program serves as the primary barrier against security breaches, protecting both the company's assets and its reputation. It's a crucial component that supports an organisation's overall health and in a world with more advanced cyber threats, it helps meet the basic compliance standards that stakeholders expect.

time-read
5 mins  |
September 2024
Cutting Costs, Not Corners: Building Large Scale Applications with Open Source Software
Open Source For You

Cutting Costs, Not Corners: Building Large Scale Applications with Open Source Software

Here are some strategies and best practices for leveraging open source to create enterprise-grade web and mobile applications without sacrificing quality or functionality.

time-read
6 mins  |
September 2024
FIDO2 and WebAuthn: Ensuring Secure User Authentication
Open Source For You

FIDO2 and WebAuthn: Ensuring Secure User Authentication

In today's digital landscape, securing online identities is more crucial than ever. Traditional passwords are no longer sufficient to protect sensitive information, which is where advanced passwordless authentication mechanisms like FIDO2 and WebAuthn come into play. These technologies offer a powerful solution for secure user authentication in a browser-based environment.

time-read
5 mins  |
September 2024
Aspiring to be a DevOps Engineer? Here are a Few Tips
Open Source For You

Aspiring to be a DevOps Engineer? Here are a Few Tips

Organisations are embracing DevOps in software development to ensure quality products are delivered faster. This fast-growing domain offers a range of career opportunities for those willing to learn. You can enrol for one of the many industry-recognised certifications and then gain experience through internships and entry-level positions.

time-read
7 mins  |
September 2024
GitHub Actions: Accelerating DevOps Adoption
Open Source For You

GitHub Actions: Accelerating DevOps Adoption

The integration of DevOps practices has become crucial for achieving rapid, reliable, and high-quality software delivery. GitHub Actions, an automation tool provided by GitHub, significantly contributes to this process by streamlining and automating various stages of the software development lifecycle. Let's find out how it can accelerate DevOps adoption.

time-read
4 mins  |
September 2024
DevOps in a Nutshell
Open Source For You

DevOps in a Nutshell

This overview takes you down the path of DevOps development, its benefits and drawbacks as well as the resources you may need to become an expert in this field. It explains the roles of a DevOps professional and why they are in demand.

time-read
5 mins  |
September 2024
The DevOps Guide: Trends, Tools, Skills, and Career Opportunities
Open Source For You

The DevOps Guide: Trends, Tools, Skills, and Career Opportunities

In today's fast-paced digital world, DevOps is crucial for software development and IT operations. By fostering collaboration and automating processes, it aims to deliver high-quality software quickly and reliably. Let's explore the latest trends in DevOps, essential tools, required skills, career opportunities, and the future of this transformative practice.

time-read
7 mins  |
September 2024
AlOps: Integrating AI with DevOps
Open Source For You

AlOps: Integrating AI with DevOps

By integrating AI with DevOps, we can harness the power of both technologies to quicken the development of quality software. Open source DevOps tools now come with AI integrated in them to automate the software development lifecycle and enhance security features.

time-read
6 mins  |
September 2024
Getting Started on Contributing to Free Software
Open Source For You

Getting Started on Contributing to Free Software

Interested in contributing to free and open source software but wondering where and how to begin? Dive in to find out...it's quite simple.

time-read
7 mins  |
September 2024
AI Services in Microsoft Azure: Designed to Help
Open Source For You

AI Services in Microsoft Azure: Designed to Help

Microsoft's Azure AI services enable optimised operations in industries as varied as retail, healthcare, manufacturing, finance, education, and media.

time-read
6 mins  |
September 2024