How to update container states when running on cloud run?

40 views Asked by At

I have a large pool of containers serving high load of web traffic, they need to store a relatively small amount of data in memory to serve these requests.

The creation and update of the objects these containers are storing happens on another service, when that service creates a new object which is stored in PG, I need all the containers serving the data to be updated to this new state.

My current implementation listens to the updates on postgres directly, but this means those services are coupled to the database of another service and this feels like an anti-pattern.

So my question is what are the approaches I could use to update all of my cloud run containers when new data arrives in the source of truth?

0

There are 0 answers