Versioning microservices
Versioning microservices is vital to ensure the controlled evolution of our microservices, and these best practices help us with that:
- Apply semantic versioning.
- Utilize RESTful API versioning.
Let’s further examine these best practices.
Apply semantic versioning
Apply semantic versioning for your microservices to express the meaning of the changes in a specific version. Semantic versioning follows the major.minor.patch
structure for version numbers. Because of this, the version number tells how extensive a new version is.
For example, a version number like 2.0.0
indicates a major release with significant changes and potential impact. While a version number like 4.1.21
refers to a small patch with most likely little impact.
We could setup complete versioning for our Django microservices application (project) as described at https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/.
But if...