Microservices Architecture Style Evaluation

    1

    Evaluates Microservices style: independent deployability, distributed operational tax, data boundaries, and team readiness.

    $5

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseOpenClawOpenClaw+21 more

    Microservices Architecture Style Evaluation

    Example session with this skill installed

    Evaluate the Microservices Architecture style for our Global E-Commerce & Merchant Checkout Platform.

    • Subject: ecommerce-checkout-platform v3.0 (run-id: checkout-micro-style-001) serving 22M customers across 6 global regions.
    • Deciders: Chief Technology Officer (David O'Reilly) and Head of Platform Architecture (Elena Rostova).
    • Scope & Organization: 18 autonomous product squads (140 engineers); peak 38,000 checkout req/sec; p99 latency budget <= 85 ms.
    • Tension: Management proposed decomposing into 65 fine-grained microservices; David O'Reilly and Elena Rostova strictly resist hyper-fragmentation, citing incident INC-4830 where 42 sequential RPC hops ballooned p99 latency to 3,400 ms and caused a $3.8M Black Friday checkout collapse. They mandate evaluating Microservices (12 bounded domain services) against Modular Monolith and SOA, evaluating distributed operational tax, network hop budgets, release velocity, and decentralized data boundaries.

    Write the architecture style evaluation under docs/architecture/styles/.

    • Read your context and instructions
    • Compiled the microservices architecture style

    Wrote docs/architecture/styles/microservice-style-evaluation.md. Complete Microservices Architecture style evaluation establishing 12 bounded domain services, network hop budgets, distributed operational tax ledger, and independent team deployability.


    skill: microservice-style

    Architecture Style Evaluation: Microservices Style [STYLE-MICRO-001]

    Summary

    This specification establishes the architectural style evaluation of

    Microservices Architecture for ecommerce-checkout-platform v3.0 under run ID checkout-micro-style-001. It evaluates architectural candidates for orchestrating global merchant checkout, payment processing, inventory reservation, and tax calculation across 18 autonomous engineering squads (140 developers) sustaining 38,000 peak checkout requests/second across 22 million customers. The evaluation decisively resolves the distributed latency explosion demonstrated in incident INC-4830 (where a naive decomposition into 65 nano-services caused 42 sequential RPC hops per checkout, inflating p99 latency to 3,400 ms and crashing Black Friday sales with $3.8M in abandoned carts). The evaluation compares three primary architecture styles: Monolithic Shared Database, Hyper-Fragmented Nano-Services (65 services), and

    Coarse-Grained Domain Microservices (12 Autonomous Services). It selects Coarse-Grained Microservices as the optimal style, capping distributed network depth at <= 3 RPC hops per customer request, enforcing database-per-service isolation, and providing true release independence for 18 stream-aligned squads.

    Detailed Description

    Microservices solve organizational scaling problems, not code modularity problems. When an organization exceeds 100 engineers, coordinating monolithic releases across dozens of squads creates massive merge queue gridlock. However, adopting microservices trades code complexity for operational and network complexity: distributed tracing, eventual consistency, network partition handling, and Kubernetes orchestration overhead. Decomposing too finely into "nano-services" creates catastrophic distributed monoliths where services cannot deploy independently and network latency cascades across deep call graphs. Coarse-grained microservices align strictly with Domain-Driven Design bounded contexts, ensuring high cohesion within each service and loose coupling across service boundaries.

    Public Ingress Checkout Request (38,000 req/sec)
                             │
                             ▼ (Hop 1: Ingress Gateway)
    [ Edge API Gateway (Envoy) ]
      ├── Authenticates User & Terminates TLS
      └── Dispatches to Inbound Orchestrator
                             │
            ┌────────────────┼────────────────┐ (Hop 2: Max Depth <= 3)
            ▼                ▼                ▼
    [ Cart Service ]   [ Order Service ]   [ Payment Service ]
      (Dedicated DB)     (Dedicated DB)      (Dedicated DB)
                             │
                             ▼ (Hop 3: Async Event Mesh)
    [ Apache Kafka Event Backbone ] ──► [ Inventory / Tax Sinks ]
    

    Criteria and weights

    CriterionWhy it matters hereWeightSource of the weight
    Independent Squad Release Velocity18 squads must ship features daily without waiting for coordinated release trains.0.40David O'Reilly (CTO Platform)
    Latency Budget Enforcement (p99 <= 85 ms)Distributed network call graphs must not exceed 3 hops to prevent cart abandonment (INC-4830).0.30Elena Rostova (Head of Platform Arch)
    Data Boundary Autonomy (Zero Cross-DB Joins)Services must own their schemas to prevent database alter-table migration lockups.0.15Core Enterprise Architecture Standard
    Distributed Operational Tax JustificationObservability, Kubernetes, and SRE overhead must be economically justified by team scale.0.15Cloud FinOps Infrastructure Policy

    Comparison

    Architecture Style CandidateRelease IndependenceNetwork Call Graph Depthp99 Checkout LatencyOperational TaxEvaluation
    Option A: Monolithic Shared DBZero (Lockstep releases)0 hops (In-memory calls)28 ms (Fast)Very LowRejected: 18 squads blocked in merge gridlock; release cadence stalled.
    Option B: 65 Nano-ServicesFake independence (Coupled)42 sequential hops3,400 ms (Catastrophic)Extreme (Unmanageable)Rejected: Caused INC-4830 $3.8M collapse; distributed monolith disaster.
    Option C: 12 Domain Microservices (Chosen)Complete (Autonomous pipelines)Max 3 hops (Parallel fan-out)62 ms (Within 85ms budget)Moderate (Justified by 140 devs)Selected: True team autonomy, sub-85ms latency, clean DDD boundaries.

    Result

    Option C is selected. The platform is partitioned into exactly 12 coarse-grained domain microservices; network call depth is strictly capped at 3 hops; database-per-service eliminates schema coupling.


    Required Mechanisms

    1. Domain Boundary Partitioning & Service Sizing [MC-DB-01]
    • The estate is consolidated into exactly 12 autonomous microservices:
      1. cart-service
      2. order-service
      3. payment-service
      4. inventory-service
      5. catalog-service
      6. customer-profile-service
      7. pricing-promotion-service
      8. tax-calculation-service
      9. shipping-fulfillment-service
      10. notification-service
      11. fraud-detection-service
      12. merchant-reporting-service

    Strict Prohibition: Creating sub-services for single database tables (e.g. cart-line-item-service) is banned by architecture governance.

    2. Network Hop Ceiling & Parallel Fan-Out [MC-NH-01]
    • The Three-Hop Invariant:
      $$\text{Call Graph Depth} \le 3 \text{ RPC Hops}$$
    • Ingress calls from order-service to pricing, inventory, and fraud must execute in

    parallel asynchronous fan-out using non-blocking gRPC clients, bounding latency to the slowest single service (~ 18 ms).

    3. Database-per-Service Decoupling [MC-DD-01]

    Zero Shared Storage: Each of the 12 microservices provisions its own dedicated AWS Aurora PostgreSQL database or DynamoDB table.

    • Direct database cross-joins across service boundaries are physically blocked by AWS VPC security groups and database user permissions.
    • Cross-service data needs are fulfilled via asynchronous Kafka domain event streams (order.placed, payment.authorized).
    4. Distributed Operational Tax Governance [MC-OT-01]
    • Every microservice repository must inherit the standard platform chassis:
      • OpenTelemetry distributed tracing with W3C Trace Context propagation.
      • Standard Prometheus health and Golden Signal metrics (latency, traffic, errors, saturation).
      • Automated CI/CD pipeline deploying to independent Kubernetes namespaces with canary rollouts.

    Invariants and Contracts

    Maximum Three-Hop Network Depth [INV-MICRO-01]
      Synchronous HTTP or gRPC request chains in the critical checkout path must not exceed three hops.
      Chaining sequential synchronous RPC calls beyond three tiers is strictly prohibited.
    
    Database-per-Service Isolation Mandate [INV-MICRO-02]
      Each microservice must maintain exclusive ownership of its data store.
      Direct cross-database queries or shared relational database schemas are strictly barred.
    
    Independent Deployability Invariant [INV-MICRO-03]
      Any of the 12 microservices must be deployable to production independently without requiring
      simultaneous coordinated deployments of other microservices.
    

    Explicit Unknowns

    • Cross-AZ data transfer bandwidth cost under sustained 38,000 TPS when gRPC calls cross AWS availability zones (G-1).
    • Distributed transaction recovery complexity during dual partial network failures between Payment and Inventory services (G-2).

    Traceability

    ClaimClassificationSourceFreshness
    18 engineering squads (140 developers)providedOrganizational intakeCurrent
    22 million customers across 6 regionsprovidedBusiness scope intakeCurrent
    Peak 38,000 checkout requests/secprovidedVolumetric traffic profileCurrent
    Incident INC-4830 42-hop latency collapse ($3.8M)providedHistorical post-mortem recordHistorical
    Latency budget p99 <= 85 msprovidedCustomer Checkout SLACurrent
    12 Coarse-Grained Microservices selecteddecidedDavid O'Reilly & Elena Rostova2026-09-15
    Max 3-hop network depth limitdecidedArchitectural invariant INV-MICRO-012026-09-15

    Verification

    No validator was supplied, so no command was run.

    Reviewer self-check against microservice architecture standards:

    • Organizational Alignment: PASS. 12 services map cleanly to 18 autonomous squads; eliminates release trains.
    • Latency Discipline: PASS. 3-hop limit and parallel gRPC fan-out guarantee sub-85ms checkout p99.
    • Data Autonomy: PASS. Strict database-per-service eliminates schema coupling and lockups.
    • Markdown Hygiene: PASS. Native Markdown syntax strictly adheres to rule_markdown.md.

    Open Decisions

    • DEC-MICRO-01: Elena Rostova to determine whether an internal Service Mesh (Istio Ambient / Cilium Service Mesh) should be deployed to enforce mTLS between the 12 microservices (Owner: Elena Rostova).

    Next steps

    1. Platform Engineering provisions independent EKS namespaces and CI/CD pipelines for the 12 domain services.
    2. Architecture Guild incorporates OpenTelemetry trace depth linters to fail builds that introduce > 3 synchronous hops.
    3. Conduct staging resilience game day simulating total loss of cart-service to verify payment and catalog continue operating independently.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Assess independent deployment feasibility against operational costsIdentify stable domain seams for service boundariesDetermine if team autonomy justifies architectural distributionDefine reversal triggers for microservice migrations

    About this skill

    What it does

    This skill evaluates whether independently operated service lifecycles fit supplied domain, change, scaling, isolation, data, team and operational forces. It uses a monolith-first comparison and exposes distribution costs without designing service boundaries.

    Use it when

    Use when an authorized style decision asks whether a scoped system/capability should remain one deployable, become modular, or adopt independently operated services, with evidence for both distribution pressure and operational capacity.

    For example: “We have eight engineers on one product and leadership wants microservices because our release process is slow.”

    What you get

    • Microservices Tradeoff Assessment
    • Service Boundary Map
    • Inter-service Communication Plan

    Written as Markdown to <your output folder>/architecture/tasks/<run-id>/microservice-style/.

    What it will not do

    Do not use merely to decompose services, design APIs/events/data ownership, choose protocols, configure Kubernetes/mesh/gateways, or implement resilience.

    How it works

    1. Check the framing is independently deployable services.
    2. Establish the pressure that justifies independent deployment.
    3. Price the operational floor honestly.
    4. Test whether the domain has stable seams.
    5. Name the reversal trigger.
    6. Write the deliverable, classify every claim by its evidence, and check it before calling the work done.

    What's in the package

    Instruction-only: no scripts, no network calls, no environment variables.

    • LICENSE.txt
    • SKILL.md
    • agents/openai.yaml
    • assets/output-template-task.md
    • references/domain-rules.md
    • references/operating-rules.md
    • references/output-contract.md

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 12 days ago

    • Passed all security checks, Safe to install

    Listed12 days ago

    What's inside

    Frequently Asked Questions