Sitemap
Google Cloud - Community

A collection of technical articles and blogs published or curated by Google Cloud Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

Announcing a Datastore-Backed Session Service for the ADK

6 min readSep 27, 2025

--

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.

Press enter or click to view image in full size
Python based adk-datastore-session library.

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…

--

--

Google Cloud - Community
Google Cloud - Community

Published in Google Cloud - Community

A collection of technical articles and blogs published or curated by Google Cloud Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

Márton Kodok
Márton Kodok

Written by Márton Kodok

Speaker at conferences, a Google Developer Expert top user on Stackoverflow, software architect at REEA.net, co-founder IT Mures, life-long learner, mentor

No responses yet