0

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)

user1177292
  • 273
  • 6
  • 18

1 Answers1

2

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

Use connection pooling

Also See

Community
  • 1
  • 1
jmj
  • 237,923
  • 42
  • 401
  • 438