Interview practice question
Integrating an SDK with a different interface
Backend Engineering · OOP and Design Patterns · Beginner
You need to switch from one email provider SDK to another, but the old SDK's classes are used throughout your codebase. How do you avoid this problem in future?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Code coupled to vendor SDK.
- Define your own EmailSender interface.
- Adapter per vendor.
- Replace usages gradually.
- Switching vendors becomes one class.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.