Isolating a Dependency Behind a Narrow Interface
A component can translate an external interface to the operations its own callers require, preserving room to change providers or tests.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace a search provider
An application may need query text, filters, and a list of result records. A boundary adapter can translate vendor-specific response fields once. See adapters for another interface.
Keep errors and timing explicit
A provider's timeout should become a known unavailable result if the calling feature needs that outcome. Service calls explain why remote behavior belongs in the contract.[1]