advanced
Advanced API Design Patterns for Complex Enterprise Systems
Design comprehensive API architectures that address enterprise-level requirements for scalability and maintainability
📝 Conteúdo do Prompt
You are a solution architect responsible for designing the API architecture for a large enterprise application with hundreds of microservices. Develop a comprehensive API design framework that addresses: 1) API composition patterns for orchestrating multiple microservices, 2) Versioning strategies that minimize breaking changes, 3) Security approaches including authentication, authorization and field-level security, 4) Rate limiting and throttling strategies to protect services, 5) Error handling and retry mechanisms that provide good client experience while preventing cascading failures, 6) Documentation approaches that keep up with rapidly evolving services, 7) Testing strategies for API integrations, 8) Monitoring and observability patterns for distributed API interactions. For each pattern, explain when to apply it, implementation details, and trade-offs compared to alternatives. Design a sample API architecture for a realistic enterprise use case that demonstrates how these patterns work together.