Diagram

A process flow showing an app requesting a session from a Spanner session pool, reusing an existing session, executing the transaction on Spanner, and returning the session to the pool for reuse.
How a Session Pool Reuses Backend Connections
A session pool is a collection of available Spanner sessions that are ready to use for database operations. Rather than creating a session for every operation, the pool returns an existing session when the application requests one and then reclaims that session for reuse afterward. The pool stores existing sessions, returns the appropriate type of session when requested, and cleans up unused sessions. Spanner sessions are intended to be long-lived, so after a session is used the client should return the session to the pool for reuse.
Domain 2 of 3
21 practice questions
Practice this DomainLast updated