Chapter 9

Load Testing a Database Server

Microservices architectures are increasingly being used, which involves more and more databases being used as well.

Usually, databases are accessed through an API, and therefore, for a load test to be as realistic as possible, it is necessary to test the API, and not the database directly:

Figure 9.1: Microservices architecture versus monolithic architecture
Figure 9.1: Microservices architecture versus monolithic architecture

However, it may be useful to test the database directly when:

  • The API is not yet ready
  • To compare JDBC drivers easily
  • To tune database parameters
  • To compare different databases
  • To compare AWS RDS engine implementations (such as Aurora, Oracle, ...

Get Master Apache JMeter - From Load Testing to DevOps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.