Nm Archetypes Architecture Paradigm Microservices
by @athola
Applies microservices for independent deployment and per-service scaling
clawhub install nm-archetypes-architecture-paradigm-microservicesπ About This Skill
name: architecture-paradigm-microservices description: Apply microservices for independent deployment and per-service scaling version: 1.9.4 triggers: - architecture - microservices - distributed-systems - team-autonomy - scalability - bounded contexts are clear metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/archetypes", "emoji": "\ud83c\udfd7\ufe0f"}} source: claude-night-market source_plugin: archetypes
> Night Market Skill β ported from claude-night-market/archetypes. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Table of Contents
The Microservices Architecture Paradigm
When to Employ This Paradigm
When NOT To Use This Paradigm
Adoption Steps
1. Define Bounded Contexts: Map each microservice to a clear business capability and establish unambiguous data ownership. 2. validate Service Data Autonomy: Each service must own and control its own database or persistence mechanism. All data sharing between services must occur via APIs or events, not shared tables. 3. Build a production-grade Platform: Before deploying services, establish foundational infrastructure for service discovery, distributed tracing, centralized logging, CI/CD templates, and automated contract testing. 4. Design for Resilience: Implement resilience patterns such as timeouts, retries, circuit breakers, and bulkheads for all inter-service communication. Formally document Service Level Indicators (SLIs) and Objectives (SLOs). 5. Automate Governance: Implement automated processes to enforce security scanning, dependency management policies, and consistent versioning strategies across all services.Key Deliverables
Technology Guidance
API Communication:
Service Discovery & Configuration:
Message Broking & Events:
Observability:
Real-World Examples
Netflix: Video streaming platform with hundreds of microservices handling different aspects like playback, recommendation, billing, and user authentication. Each team can deploy independently without affecting others.
Amazon: E-commerce platform with separate services for product catalog, order processing, payment, inventory, and shipping. Enables independent scaling during high-traffic events like Prime Day.
Uber: Ride-sharing platform with microservices for rider matching, driver dispatch, pricing, payment processing, and notifications, allowing rapid feature development and deployment.
Risks & Mitigations
Troubleshooting
Common Issues
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior
Enable verbose logging with --verbose flag
π Tips & Best Practices
Common Issues
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior
Enable verbose logging with --verbose flag