Skip to content

boiar/Connection-Pooling-App

Repository files navigation

Node.js MySQL Connection Pooling App

This is a simple Node.js application built with Express, MySQL, and Connection Pooling.
It includes support for database migrations and seeders to help initialize and populate your database.

🔍 This project demonstrates the performance difference between:

  • Using a single (non-pooled) database connection
  • Using connection pooling

You can run 1000+ concurrent requests to both endpoints and compare the total response time.
The results clearly show how Connection Pooling can significantly improve performance in high-load scenarios.


📦 Requirements

  • Node.js v18+
  • MySQL Server
  • .env file with app and database configuration

⚙️ Setup & Run

1. Edit ENV File

  • edit .env file in root path of project

2. Run Migration

  • node migrate.js

3. Run Seeder

  • node seed.js

About

Simple Node.js application using Express, MySQL, and connection pooling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published