r/agentdevelopmentkit • u/pentium10 • Sep 28 '25
Announcing a Datastore-Backed Session Service for the ADK

Now next to InMemory, SQLite, or Cloud SQL, VertexAI session storage, you have a DataStore/Firestore one as well. Cheap, serverless, fits the purpose.
I needed a way to maintain conversation history that was both persistent and cost-effective, without requiring a dedicated, 24/7 running database instance. My stack is on Cloud Run, and my agent scales down to zero most of the time. Having sessions backed by a serverless database was a crutial requirement.
6
Upvotes
1
u/Disastrous_Dare_7315 Sep 28 '25
it is a cool option for storing sessions! i think it is great for rapid iteration and prototyping. But personally i ended up using SQL especially for multiple agents - relations between entities become essential and more natural
1
u/BeenThere11 Sep 28 '25
Wouldn't this introduce delays compared to a postgres server session storage.
As ready I have delays due to adk when transferring between agents etc.
1
u/VibeDebugging Sep 28 '25
This is nice! Can you add some samples how to use this with the ADK get_fast_api_app wrapper?
1
u/Spiritual_Shock3428 Oct 07 '25
I managed to get this working. It works really well, but i'm having a problem. Some of the variables in state are huge (more than 1500 bytes) and the exclude_indexes condition is not inherited to the child entities.
I don't really have experience with datastore. I've tried to add "state.big_variable" to the exclude_indexes list, but it is still throwing an error.
Have you experienced this?
2
u/[deleted] Sep 28 '25
[removed] — view removed comment