sansari
sansari

Reputation: 558

version management in microservices

Suppose that I have a UserService in my Microservice Architecture deployed on the cloud. There is a Service Discovery for routing the requests to different host of UserService.

If I have two different versions of UserService. Lets say user-service-1.0 and user-service-2.0 and part of clients should still use older version, then how this can be managed in Microservice Architecture.

Upvotes: 5

Views: 7959

Answers (2)

Lech Migdal
Lech Migdal

Reputation: 3978

For backward compatibility, see Product Versioning Microservices, in general Semantic Versioning is advised by many...

In the broader sense - there should be an agreed phase-out roadmap for major versions, that is communicated to API consumers (together with SLAs). This is why tracking who uses your APIs is important.

Upvotes: 3

Kraylog
Kraylog

Reputation: 7553

Every version of UserService needs to be backwards and forwards compatible. This way clients can talk to any version of the service and not crash.

Of course, the details of how this is achieved depends on your architecture.

Upvotes: 3

Related Questions