Skip to content

Service protocol

In Combadge a definition of a service protocol (also known as interface) is de-coupled from a service implementation. That allows a developer to define a service's interface and later bind it to a backend which in turn is directly responsible for handling requests and responses.

To define a service protocol one makes use of the PEP 544 aka «structural subtyping». Combadge inspects the protocol during «binding».