by thamer · 4y ago · 0 comments
For example if you're on version X and in the process of deploying version Y, when service A sends a request to service B you have 4 distinct possibilities regarding the versions running on these two instances (X→X, X→Y, Y→X, Y→Y). If in version Y you've made changes to the request in its protocol/format/payload, you'll need to deal with all 4 cases to avoid encountering errors during the deployment. If the instances log all messages with their version, it'll help track down these transient incompatibility bugs, e.g.
{
"service": "B",
"build": "X",
"request_service": "A",
"message": "unknown field in request: 'new_field'"
}