Skip to the content.

Standard Operating Procedure

sop-client-2.0.0

Client

Client diagram

The client layer of the microservice is responsible for reflecting the api layers interface in code. The client is expected to be an infrastructure implementation of the microservice that can be dependent on by other solutions for a practical interaction with the service.

A client is expected to exclusively throw one of the errors described by the standard, if an error occurred.

The client is expected to define default values for configurations that can be altered when utilizing the implementation.A gateway describes the client protocol that is used to interact with the service, the repository is dependent on the gateway.

The repository is responsible for facading the service API layer in code. The repository is the instance that is expected to be returned when performing a service-location on the layer.

The validator is an anti-corruption layer that is responsible for throwing the “unexpected-response” error on invalidated response.