HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

Staging - Test multiple microservice versions together

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
microservicetogetherstagingtestmultipleversions

Problem

I been trying to search for answer for this question but so far I didn't found anything useful.

Our problem is that we have 2 microservices with many staging branches, each of these microservices are on different servers and environments.
We want to test each microservices branch with each other in our staging environment so microservice1-branch20 with microservice2-branch10.
They need to communicate two-way so they both need to know that they only can contact with that version of the microservice.

Is there any good way to do these tests without putting them together in one docker container?

Solution

Yes, this can be done by Service Discovery. The product family you're looking for is of products such as Consul. You should have the container services report their identities and versions when they load. Report their version and ip (for example), and have the tests run against these values.

This will require some effort with installations and scripting, and has a learning curve - but this is the way to go.

Context

StackExchange DevOps Q#5024, answer score: 1

Revisions (0)

No revisions yet.