Member-only story
Announcing a Datastore-Backed Session Service for the ADK
As developers building on the Agent Development Kit (ADK), we often face a critical challenge when moving our agents to production: how do we handle session persistence in a serverless environment? The default DatabaseSessionService is excellent for many use cases, but its reliance on a file-based solution like SQLite presents a problem in ephemeral, serverless platforms like Google Cloud Run, where the local filesystem is not guaranteed to persist between invocations.
This exact challenge led to the creation of a new, robust solution:
the Python based adk-datastore-session library.
I needed a way to maintain conversation history that was both persistent and cost-effective, without requiring a dedicated, 24/7 running database instance.
This article dives into this new library, the problem it solves, and how you can use it in your own ADK projects. Friendly link to read it.
The Serverless Challenge
Serverless platforms are fantastic for their scalability and pay-per-use pricing models. However, their core architectural principle — statelessness — means that any data written to the local disk of an instance can vanish the moment the instance scales down to zero. For a conversational agent that relies on…

