January 2019
Beginner
556 pages
14h 19m
English
Yet another use case related to scalability is when the number of database connections is great. We mentioned connection pooling in Chapter 15, Using PosgreSQL in Python Applications, and discussed how necessary and beneficial it is. However, when a single database is used in an environment with a lot of microservices and each has its own connection pool, even if they don't perform too many queries, it's possible that hundreds or even thousands of connections are opened in the database. Each connection consumes server resources and just the requirement to handle a great number of connections can already be a problem, without even performing any queries.
If applications don't use connection pooling and ...
Read now
Unlock full access