Mapping External Service Integration: Failure Modes, Anti-Corruption Layer and Choosing a Client (Hand-Written, Refit, Kiota)
The first job in an external integration is to write down the expected behavior for every failure mode and translate the provider's model and errors into our own types with a port and adapter. Using Bookstore's fake payment provider and carrier API, we show the error model, the ProblemDetails mapping, and how a hand-written client, Refit and Kiota really behave when the schema changes.
14 Nov 2026
·
13 min
·
10