user1177292
user1177292

Reputation: 273

MySql connection managment with web app

I have a number of servlets (Spring MVC, Rest et...) which all need a database connection

I have a MYSQL database and I use mysql-connector-java-5.1.20-bin.jar to make the connection

The servlets get hit a few hundred times a hour each and I want to improve performance

So how can the current design be improved? (current system is each request into the platform is handled by a servlet which creates a DB connection)

Upvotes: 0

Views: 90

Answers (1)

Jigar Joshi
Jigar Joshi

Reputation: 240870

current system is each request into the platform is handled by a servlet which creates a DB connection

Use connection pooling

Also See

Upvotes: 2

Related Questions