user2724058
user2724058

Reputation: 338

Send public API versioning across micro service

I have following architecture

API gateway(REST Public API) --> MBus --> Micro services(Windows Services).

I have implemented the URL based versioning in API Gateway that helps me backward compatibility. Based on the API request API Gateway translate the request to the message bus and send over topic for particular service listening. Now in my micro services that are over the message bus how I manage the Versioning of API for backward compatibility should I send the API version over the message bus from API gateway so that particular service know the version and execute the specific version of the request. What is the standard and ways to manage the API versioning across micro services when micro services are over message bus and not REST based.

Regards,

IK

Upvotes: 0

Views: 130

Answers (1)

cool
cool

Reputation: 1786

If you are changing the contract you should use another topic.

Basically you should manage contract on topics.

And you should support both topics until there is no user for the old one.

Upvotes: 1

Related Questions