TLS Performance Overhead for MongoDB

To explore TLS performance overhead for MongoDB, we recently conducted two tests simulating common database usage patterns. Our team first investigated connection pooling, where an application (or framework) uses a single connection for many database operations. Then, we considered one request per connection in which an application opens a connection, executes an operation, and immediately closes the connection after completing the operation.

The research presented within this document describes the precise performance overhead that TLS introduces when executing operations on one of the major NoSQL databases: MongoDB (about 45% in latency).