Saturday, 6 July 2019

SDET Interview Questions




Microservice  Service Contract


A microservice will have a service contract associated with it. The same way that a supplier of yours will sign a contract with your company assuring certain response times, how they can be contacted and exactly what services they provide  the same can be said for a microservice.
    • MyMicroservice will always respond to a request within x milliseconds.
    • MyMicroService will always respond to a request on port XYZ
    • MyMicroService will accept a request of Type A and perform Action B.
Above is the defined service contract for My Microservice. You know what you are getting. You know that you can rely on it. And you know exactly what it will do  when you ask something of it.

No comments:

Post a Comment