Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Shared Session Management for ADK Agents on Cloud Run – PostgreSQL vs. Vertex AI Session Service

I recently followed this tutorial:

https://codelabs.developers.google.com/deploy-manage-observe-adk-cloud-run#1

 

I was able to successfully deploy an agent on Cloud Run that scales horizontally while maintaining consistent session management by using an external PostgreSQL database to store sessions across instances.

 

Now, I’d like to achieve the same behavior using the Vertex AI Session Service instead of PostgreSQL. Is this possible? Has anyone done this before?

 

I tried replacing the PostgreSQL URI with the Agent Engine service URI, but it didn’t work as expected. Any guidance or examples would be greatly appreciated.

 

Thanks!

 

1 2 303
2 REPLIES 2