Reputation: 1066
I have a situation to which I can find no easy solution and I am looking for some common solutions to this issue.
I have a deployment with three pods doing simple CRUD operations with some HTTP resources. Now if first client POSTs a new resource to one of the pods and second clients posts a GET to some other pod shortly aftwerward, how can I make sure that second client gets the resource from another pod?
This resource is held abstract on purpose, as this problem can appear both with Restful and with database-stored resources ( when application internal caching is used )
Upvotes: 2
Views: 2153
Reputation: 61669
Well, you need to share š¾ something if you want the pods to know it at the same time. Some options:
You can run all of the above in Kubernetes or separately as long as your pods have network connectivity to these options.
āļø
Upvotes: 2