- [Instructor] We are still missing a function
to clear the registry.
I want to be able to request
a specific version of a service.
This can be very useful if we want to roll out
new versions of a service in parallel to the old,
and leave it to the caller which version to use.
As Versioning scheme, we will use Semver.
This is also what MPM uses.
If you are unfamiliar with it,
then now is a good time to look it up at semver.org
So if I have a caller and the registry,
and I have three instances of services running
where two instances are actually for service one
but different versions
and I now request service one for the version
1.1.x then only 1.1.0 will match that
and the registry will return exactly this one entry.
If there is more than one service that matches that request
I also want to use some load balancing to distribute
the request over all of the services.
This means if I have the caller and registry
and again, those three services and I am
now requesting service one with the major version one
this means I don't care what the minor
and the patch version is, then the registry should
return either 1.1.0 or 1.2.0 and should choose
randomly between them.
This will add some notion of load balancing
to our infrastructure.