Provider Adapter
Provider interfaces are encapsulated and mapped to unified interfaces used in applications to separate concerns of interactions with the provider from application functionality.
![]() |
How can the dependencies of an application component on a provider-specific interface be managed? |
Context
Cloud providers offer many interfaces that can be used in application components of a Distributed Application. If a component directly interacts with these interfaces, its implementation becomes strongly interleaved with the specific functions offered and the protocols used.
Solution
The Provider Adapter encapsulates all provider-specific implementations required for authentication, data formatting etc. in an abstract interface. The Provider Adapter , thus, ensures separation of concerns between application components accessing provider functionality and application components providing application functionality. It may also offer synchronous provider-interfaces to be accessed asynchronously via messages and vice versa.
Related Patterns
Data Access Component, Multi-Component Image, Managed Configuration, Elasticity Manager, Elastic Load Balancer, Elastic Queue, Watchdog