Replies: 1 comment 4 replies
-
Maybe answered here: https://cloud-native.slack.com/archives/C01U781DW2E/p1686576619237719 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our pods are communicating with each other through Kafka messages. The requests start on the Web frontend. If the requests are coming from the preview frontend, the request will be labeled with the preview in the requests header. The receiving pod in the k8s will produce a kafka message with either preview label or no preview label.
Now the consumer pods need to decide if they want to consume this kafka message or not.
If consumer replica set has no preview pod (there is no update in the consumer Argo Rollout), the current active consumer pod will consume the kafka message regardless of having preview label or not.
If consumer replica set has preview pod (there is some update in the consumer Argo Rollout), the new consumer pod will only consume the kafka message with preview label on it; the old active consumer pod will only consume the kafka message with NO preview label on it.
So how can a pod know if itself is the new pod in the middle of the argo rollout? How do we usually handle this case?
Beta Was this translation helpful? Give feedback.
All reactions