Skip to content

← All labs

Architecture Builder

Draw a system from components and connections, set the load and run it. The engine shows which component gives way first, and static checks explain what to fix. Everything runs in your browser, and your design is kept there too.

Sandbox

Start from a client and nothing else, and build upward. The workload is yours to change.

Architecture Builder

Draw a system as components and connections, set the load and run it. The engine shows where the design breaks, and the checks explain what to fix.

Workload

req/s
%

A workload with 80% reads or more counts as read-heavy: the cache and replica checks apply to it.

Components

  • ClientEntry point: every request starts here.
    Advanced settings: Client

    Empty means the default for this kind: 100,000.

    Empty means the default for this kind: 0.

    Empty means the default for this kind: no cap.

Add a component

Connections

No connections yet. Connect the client to a component to send it requests.

    Add a connection

    A run is instant: the engine solves the design in steady state.

    Run the design to see where it breaks.

    Findings

    The static checks found nothing. Run the design to add what the engine finds.

    Model notes

    Assumptions

    • A run is a steady state at a constant rate. The engine solves queueing formulas; it does not replay individual requests.
    • The instances of a component share its load evenly.
    • A cache or a CDN answers with the hit ratio you set. The model does not predict that ratio.
    • Component sizes (instances, concurrent requests, time per request) are illustrative defaults, not measurements of any product.

    Simplifications

    • Each connection takes 0.3 ms of network time unless you change it.
    • Failures, timeouts and queue limits are not simulated here. The warnings about them come from static rules over the design.
    • The share of the target load a design carries is found by raising and lowering the load until the engine first reports an overload.

    Every number here is model output or an illustrative default, not a measurement.

    Starting designs

    Each design shows one finding. Open one, run it, then change it and run it again.

    Three tiers, nothing else

    Client, API and one database at 500,000 requests per second: the plain version of the design the Builder checks first.

    Component sizes are the Builder defaults, which are illustrative. Run it and read which component the engine reports first.

    Open this design

    Architecture Builder

    Draw a system as components and connections, set the load and run it. The engine shows where the design breaks, and the checks explain what to fix.

    Workload

    req/s
    %

    A workload with 80% reads or more counts as read-heavy: the cache and replica checks apply to it.

    Components

    • ClientEntry point: every request starts here.
      Advanced settings: Client

      Empty means the default for this kind: 100,000.

      Empty means the default for this kind: 0.

      Empty means the default for this kind: no cap.

    • API
      Advanced settings: API

      Empty means the default for this kind: 16.

      Empty means the default for this kind: 2.

      Empty means the default for this kind: no cap.

    • Database
      Advanced settings: Database

      Empty means the default for this kind: 4.

      Empty means the default for this kind: 5.

      Empty means the default for this kind: no cap.

    Add a component

    Connections

    • Client → API
      Network time: Client → API

      Empty means 0.3 ms.

    • API → Database
      Network time: API → Database

      Empty means 0.3 ms.

    Add a connection

    A run is instant: the engine solves the design in steady state.

    Run the design to see where it breaks.

    Findings

    Errors (1)
    Warnings (3)
    • WarningAPI has several instances and no load balancer

      Components: API, Client

      Why this matters The client reaches API directly, so nothing spreads requests across its instances or takes a failed one out (load balancing); put a load balancer in front of it.

    • WarningReads go straight to Database, with no cache in front

      Components: Database

      Why this matters Most of the traffic is reads, so a cache in front of Database (caching) answers repeated reads from memory and leaves the store only the misses; set the hit ratio you expect and run again.

    • WarningDatabase has no replica to share the reads

      Components: Database

      Why this matters A read-heavy design with one copy of Database (replication) cannot spread its reads or survive losing it, so add replicas and send reads to them, accepting that a replica can lag.

    Model notes

    Assumptions

    • A run is a steady state at a constant rate. The engine solves queueing formulas; it does not replay individual requests.
    • The instances of a component share its load evenly.
    • A cache or a CDN answers with the hit ratio you set. The model does not predict that ratio.
    • Component sizes (instances, concurrent requests, time per request) are illustrative defaults, not measurements of any product.

    Simplifications

    • Each connection takes 0.3 ms of network time unless you change it.
    • Failures, timeouts and queue limits are not simulated here. The warnings about them come from static rules over the design.
    • The share of the target load a design carries is found by raising and lowering the load until the engine first reports an overload.

    Every number here is model output or an illustrative default, not a measurement.

    Reads straight to the database

    A load balancer, four API instances and a database with a replica, at 5,000 requests per second with 95 % reads and no cache anywhere.

    Every read reaches the database, so the database is the first component to run out of capacity.

    Open this design

    Architecture Builder

    Draw a system as components and connections, set the load and run it. The engine shows where the design breaks, and the checks explain what to fix.

    Workload

    req/s
    %

    A workload with 80% reads or more counts as read-heavy: the cache and replica checks apply to it.

    Components

    • ClientEntry point: every request starts here.
      Advanced settings: Client

      Empty means the default for this kind: 100,000.

      Empty means the default for this kind: 0.

      Empty means the default for this kind: no cap.

    • Load balancer
      Advanced settings: Load balancer

      Empty means the default for this kind: 256.

      Empty means the default for this kind: 0.05.

      Empty means the default for this kind: no cap.

    • API
      Advanced settings: API

      Empty means the default for this kind: 16.

      Empty means the default for this kind: 2.

      Empty means the default for this kind: no cap.

    • Database
      Advanced settings: Database

      Empty means the default for this kind: 4.

      Empty means the default for this kind: 5.

      Empty means the default for this kind: no cap.

    Add a component

    Connections

    • Client → Load balancer
      Network time: Client → Load balancer

      Empty means 0.3 ms.

    • Load balancer → API
      Network time: Load balancer → API

      Empty means 0.3 ms.

    • API → Database
      Network time: API → Database

      Empty means 0.3 ms.

    Add a connection

    A run is instant: the engine solves the design in steady state.

    Run the design to see where it breaks.

    Findings

    Warnings (1)
    • WarningReads go straight to Database, with no cache in front

      Components: Database

      Why this matters Most of the traffic is reads, so a cache in front of Database (caching) answers repeated reads from memory and leaves the store only the misses; set the hit ratio you expect and run again.

    Model notes

    Assumptions

    • A run is a steady state at a constant rate. The engine solves queueing formulas; it does not replay individual requests.
    • The instances of a component share its load evenly.
    • A cache or a CDN answers with the hit ratio you set. The model does not predict that ratio.
    • Component sizes (instances, concurrent requests, time per request) are illustrative defaults, not measurements of any product.

    Simplifications

    • Each connection takes 0.3 ms of network time unless you change it.
    • Failures, timeouts and queue limits are not simulated here. The warnings about them come from static rules over the design.
    • The share of the target load a design carries is found by raising and lowering the load until the engine first reports an overload.

    Every number here is model output or an illustrative default, not a measurement.

    The same reads, with a cache

    The previous design with a two-instance cache between the API and the database, answering 95 % of reads on its own.

    The 95 % hit ratio is a number you set, not something the model derives. Set it to 0 and run again to see the cache stop helping.

    Open this design

    Architecture Builder

    Draw a system as components and connections, set the load and run it. The engine shows where the design breaks, and the checks explain what to fix.

    Workload

    req/s
    %

    A workload with 80% reads or more counts as read-heavy: the cache and replica checks apply to it.

    Components

    • ClientEntry point: every request starts here.
      Advanced settings: Client

      Empty means the default for this kind: 100,000.

      Empty means the default for this kind: 0.

      Empty means the default for this kind: no cap.

    • Load balancer
      Advanced settings: Load balancer

      Empty means the default for this kind: 256.

      Empty means the default for this kind: 0.05.

      Empty means the default for this kind: no cap.

    • API
      Advanced settings: API

      Empty means the default for this kind: 16.

      Empty means the default for this kind: 2.

      Empty means the default for this kind: no cap.

    • Cache
      Advanced settings: Cache

      Empty means the default for this kind: 8.

      Empty means the default for this kind: 0.2.

      Empty means the default for this kind: no cap.

      Empty means the default for this kind: 0.95.

    • Database
      Advanced settings: Database

      Empty means the default for this kind: 4.

      Empty means the default for this kind: 5.

      Empty means the default for this kind: no cap.

    Add a component

    Connections

    • Client → Load balancer
      Network time: Client → Load balancer

      Empty means 0.3 ms.

    • Load balancer → API
      Network time: Load balancer → API

      Empty means 0.3 ms.

    • API → Cache
      Network time: API → Cache

      Empty means 0.3 ms.

    • Cache → Database
      Network time: Cache → Database

      Empty means 0.3 ms.

    Add a connection

    A run is instant: the engine solves the design in steady state.

    Run the design to see where it breaks.

    Findings

    The static checks found nothing. Run the design to add what the engine finds.

    Model notes

    Assumptions

    • A run is a steady state at a constant rate. The engine solves queueing formulas; it does not replay individual requests.
    • The instances of a component share its load evenly.
    • A cache or a CDN answers with the hit ratio you set. The model does not predict that ratio.
    • Component sizes (instances, concurrent requests, time per request) are illustrative defaults, not measurements of any product.

    Simplifications

    • Each connection takes 0.3 ms of network time unless you change it.
    • Failures, timeouts and queue limits are not simulated here. The warnings about them come from static rules over the design.
    • The share of the target load a design carries is found by raising and lowering the load until the engine first reports an overload.

    Every number here is model output or an illustrative default, not a measurement.

    A long synchronous chain

    Four services call each other in a line before reaching the database: six synchronous calls from the client, with every service replicated.

    The request waits for every hop, so latencies add up and so do the chances that one of them fails.

    Open this design

    Architecture Builder

    Draw a system as components and connections, set the load and run it. The engine shows where the design breaks, and the checks explain what to fix.

    Workload

    req/s
    %

    A workload with 80% reads or more counts as read-heavy: the cache and replica checks apply to it.

    Components

    • ClientEntry point: every request starts here.
      Advanced settings: Client

      Empty means the default for this kind: 100,000.

      Empty means the default for this kind: 0.

      Empty means the default for this kind: no cap.

    • Load balancer
      Advanced settings: Load balancer

      Empty means the default for this kind: 256.

      Empty means the default for this kind: 0.05.

      Empty means the default for this kind: no cap.

    • Gateway (gateway)
      Advanced settings: Gateway

      Empty means the default for this kind: 16.

      Empty means the default for this kind: 2.

      Empty means the default for this kind: no cap.

    • Orders (orders)
      Advanced settings: Orders

      Empty means the default for this kind: 16.

      Empty means the default for this kind: 2.

      Empty means the default for this kind: no cap.

    • Inventory (inventory)
      Advanced settings: Inventory

      Empty means the default for this kind: 16.

      Empty means the default for this kind: 2.

      Empty means the default for this kind: no cap.

    • Pricing (pricing)
      Advanced settings: Pricing

      Empty means the default for this kind: 16.

      Empty means the default for this kind: 2.

      Empty means the default for this kind: no cap.

    • Database
      Advanced settings: Database

      Empty means the default for this kind: 4.

      Empty means the default for this kind: 5.

      Empty means the default for this kind: no cap.

    Add a component

    Connections

    • Client → Load balancer
      Network time: Client → Load balancer

      Empty means 0.3 ms.

    • Load balancer → Gateway (gateway)
      Network time: Load balancer → Gateway (gateway)

      Empty means 0.3 ms.

    • Gateway (gateway) → Orders (orders)
      Network time: Gateway (gateway) → Orders (orders)

      Empty means 0.3 ms.

    • Orders (orders) → Inventory (inventory)
      Network time: Orders (orders) → Inventory (inventory)

      Empty means 0.3 ms.

    • Inventory (inventory) → Pricing (pricing)
      Network time: Inventory (inventory) → Pricing (pricing)

      Empty means 0.3 ms.

    • Pricing (pricing) → Database
      Network time: Pricing (pricing) → Database

      Empty means 0.3 ms.

    Add a connection

    A run is instant: the engine solves the design in steady state.

    Run the design to see where it breaks.

    Findings

    Warnings (1)
    • WarningSynchronous chain of 6 calls

      Components: Client, Load balancer, Gateway (gateway), Orders (orders), Inventory (inventory), Pricing (pricing), Database

      Why this matters A request that waits through 6 calls in a row (client → load-balancer → Gateway → Orders → Inventory → Pricing → database) adds up their latencies and their chances of failing (reliability), so shorten the chain, make some calls asynchronous or merge steps.

    Model notes

    Assumptions

    • A run is a steady state at a constant rate. The engine solves queueing formulas; it does not replay individual requests.
    • The instances of a component share its load evenly.
    • A cache or a CDN answers with the hit ratio you set. The model does not predict that ratio.
    • Component sizes (instances, concurrent requests, time per request) are illustrative defaults, not measurements of any product.

    Simplifications

    • Each connection takes 0.3 ms of network time unless you change it.
    • Failures, timeouts and queue limits are not simulated here. The warnings about them come from static rules over the design.
    • The share of the target load a design carries is found by raising and lowering the load until the engine first reports an overload.

    Every number here is model output or an illustrative default, not a measurement.

    Writes through a queue

    A write-heavy path: the API hands each write to a queue, and workers apply it to the database at their own pace, retrying safely.

    The retry from the workers to the database is marked idempotent, so a repeated write is the same write.

    Open this design

    Architecture Builder

    Draw a system as components and connections, set the load and run it. The engine shows where the design breaks, and the checks explain what to fix.

    Workload

    req/s
    %

    A workload with 80% reads or more counts as read-heavy: the cache and replica checks apply to it.

    Components

    • ClientEntry point: every request starts here.
      Advanced settings: Client

      Empty means the default for this kind: 100,000.

      Empty means the default for this kind: 0.

      Empty means the default for this kind: no cap.

    • Load balancer
      Advanced settings: Load balancer

      Empty means the default for this kind: 256.

      Empty means the default for this kind: 0.05.

      Empty means the default for this kind: no cap.

    • API
      Advanced settings: API

      Empty means the default for this kind: 16.

      Empty means the default for this kind: 2.

      Empty means the default for this kind: no cap.

    • Queue
      Advanced settings: Queue

      Empty means the default for this kind: 1,000.

      Empty means the default for this kind: 1.

      Empty means the default for this kind: no cap.

    • Worker
      Advanced settings: Worker

      Empty means the default for this kind: 8.

      Empty means the default for this kind: 30.

      Empty means the default for this kind: no cap.

    • Database
      Advanced settings: Database

      Empty means the default for this kind: 4.

      Empty means the default for this kind: 5.

      Empty means the default for this kind: no cap.

    Add a component

    Connections

    • Client → Load balancer
      Network time: Client → Load balancer

      Empty means 0.3 ms.

    • Load balancer → API
      Network time: Load balancer → API

      Empty means 0.3 ms.

    • API → Queue
      Network time: API → Queue

      Empty means 0.3 ms.

    • Queue → Worker
      Network time: Queue → Worker

      Empty means 0.3 ms.

    • Worker → Database
      Network time: Worker → Database

      Empty means 0.3 ms.

    Add a connection

    A run is instant: the engine solves the design in steady state.

    Run the design to see where it breaks.

    Findings

    The static checks found nothing. Run the design to add what the engine finds.

    Model notes

    Assumptions

    • A run is a steady state at a constant rate. The engine solves queueing formulas; it does not replay individual requests.
    • The instances of a component share its load evenly.
    • A cache or a CDN answers with the hit ratio you set. The model does not predict that ratio.
    • Component sizes (instances, concurrent requests, time per request) are illustrative defaults, not measurements of any product.

    Simplifications

    • Each connection takes 0.3 ms of network time unless you change it.
    • Failures, timeouts and queue limits are not simulated here. The warnings about them come from static rules over the design.
    • The share of the target load a design carries is found by raising and lowering the load until the engine first reports an overload.

    Every number here is model output or an illustrative default, not a measurement.

    Built by GhaziAlibi.

    © ShardCraft. All rights reserved.