Skip to Content
Hands-On Reactive Programming in Spring 5
book

Hands-On Reactive Programming in Spring 5

by Oleh Dokuka, Igor Lozynskyi
October 2018
Intermediate to advanced
556 pages
15h 18m
English
Packt Publishing
Content preview from Hands-On Reactive Programming in Spring 5

Connection management

Modern applications rarely create a JDBC connection directly. More often, connection pools are used. The reason behind this is pretty simple—establishing a new connection is costly. Consequently, it is wise to have a cache of connections managed in the way that allows reuse. The cost of creating a connection may come from two areas. First of all, the connection initiation process may require client authentication and authorization, and this takes up precious time. Secondly, a new connection may cost a database a fortune. For example, PostgreSQL creates a whole new process (not a thread!) whenever a new connection is established, which itself may take hundreds of milliseconds on a powerful Linux machine. At the time of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring Microservices in Action, Second Edition

Spring Microservices in Action, Second Edition

John Carnell, Illary Huaylupo Sanchez

Publisher Resources

ISBN: 9781787284951Supplemental Content