IntegrationArchitect (Hardest)anti-corruption-layerdddlegacy
Design anti-corruption layer for legacy system integration
Real World Scenario
1960s mainframe terminology and codes leak into Salesforce confusing users and breaking reports.
Expected Answer
• Anti-corruption layer middleware translates mainframe codes to canonical Salesforce values
• Salesforce never stores raw mainframe codes in user-facing fields
• Translation table versioned with effective dates
• Inbound and outbound translation symmetric
• Domain language ubiquitous in Salesforce UI
• Legacy quirks contained never spread to new integrations
• Document mapping business glossary
Follow-Up Questions & Answers
Click to expand — each follow-up includes a direct, interview-ready answer
Main difference: use case and scale. Anti-corruption layer middleware translates mainframe codes to canonical Salesforce values. Salesforce never stores raw mainframe codes in user-facing fields. Pick based on your integration pattern and team capability. Anti-corruption layer protects Salesforce domain model from legacy pollution—worth middleware investment. Document the decision in an ADR and align with enterprise standards.
Architect Perspective
Anti-corruption layer protects Salesforce domain model from legacy pollution—worth middleware investment.