Decoupling external dependencies from your domain with Ports & Adapters
How I used the Ports & Adapters architecture to keep the domain free of the internal details of third-party data providers, enabling more stable tests and better separation of concerns.