Skip to main content
← PROBLEMS / SYSTEM-DESIGN
An end-to-end domain learning journey

Design an Enterprise Project Management
& Kanban System (Jira Scale).

Design a multi-tenant Jira-scale Kanban & issue-tracking platform supporting real-time board collaboration, custom workflow state machines, and JQL search.
Start the journey7 stages· Last modified Nov 24, 2026
FIRST PRINCIPLES. PRODUCTION SCALE.
The idea to keep with you

If latency budgets leave no room for synchronous retries, separate transactional issue writes (tenant-sharded PostgreSQL + Lexorank + optimistic locking) from real-time board fan-out (Redis Pub/Sub + WebSockets) and async JQL indexing (CDC Outbox -> Elasticsearch).

TL;DR30-second simplified summary
▾

The write path validates workflow DAG rules in memory, updates PostgreSQL with single-row Lexorank CAS, and writes an outbox event. Redis Pub/Sub fans out deltas to WebSocket viewers, while Debezium CDC keeps Elasticsearch JQL indexes fresh.

Before you begin · Building blocksAlready know these? Jump to Stage 01 ↓
Lexorank & Distributed Kanban Board Ordering
Lexorank encodes list positions as variable-length base-36 strings prefixed by a rebalancing bucket, enabling O(1) drag-and-drop card reordering without rewriting sibling rows.
Full walkthrough · 7 stages
01
foundation

Multi-Tenant Sharding & Noisy-Neighbor Isolation.

Why this matters: Partition issue and board data by tenant_id so large enterprise orgs never degrade smaller tenants.

Think of Multi-Tenant Sharding & Noisy-Neighbor Isolation as the intuition layer for Design an Enterprise Project Management & Kanban System (Jira Scale): Partition issue and board data by tenant_id so large enterprise orgs never degrade smaller tenants.

In a shared database, a single enterprise tenant running bulk CSV imports or massive JQL exports can saturate connection pools and IOPS. Sharding PostgreSQL by tenant_id (consistent hashing across logical shards) keeps every board query, sprint rollup, and Lexorank rebalance local to a single shard without distributed joins.

FOUNDATION

Tenant-Sharded Data Plane

API GatewayingressShard RoutercomputePostgreSQL ShardsstorageStoreroutes to single shard

1.Single-Shard Joins: All issues, sprints, and comments for a tenant live on one shard.

2.Bulkhead Pool: Per-tenant rate limits cap bulk import concurrency.

Sharding by `tenant_id` eliminates cross-shard joins and isolates noisy-neighbor workloads.

02
foundation

Custom Workflow State Machine & Guard Validation.

Why this matters: Validate configurable status transitions, role permissions, and required-field validators before persisting.

Think of Custom Workflow State Machine & Guard Validation as the intuition layer for Design an Enterprise Project Management & Kanban System (Jira Scale): Validate configurable status transitions, role permissions, and required-field validators before persisting.

Unlike fixed-status apps, Jira projects define custom workflows (e.g., In Review -> QA -> Done with a mandatory reviewer_id guard). Caching compiled workflow DAGs in Redis/local memory lets the Issue Service validate transitions in <1ms before opening a database transaction.

FOUNDATION

Compiled Workflow DAG Validation

Workflow DAG CachecacheTransition GuardcomputeIssue MutationstorageStorepermits valid transition

1.L1 Cache: Workflow definitions change rarely and cache cleanly with versioned keys.

2.Fail-Fast: Invalid transitions are rejected before acquiring DB row locks.

In-memory workflow DAGs enforce per-project transition rules before touching PostgreSQL.

Engineering Decision Framework
Problem
How to implement Design an Enterprise Project Management & Kanban System (Jira Scale) without hitting unbounded tail latency, state divergence, or operational fragility.
Naive Solution
Use a single unpartitioned path with unbounded retries and synchronous global coordination.
Why It Fails
Global coordination serializes throughput under load, while unbounded retries amplify transient stalls into full outages.
Alternatives
Compare synchronous strict-consistency paths against bounded asynchronous replication, local caching, or partitioned ownership.
Engineering Decision
If latency budgets leave no room for synchronous retries, separate transactional issue writes (tenant-sharded PostgreSQL + Lexorank + optimistic locking) from real-time board fan-out (Redis Pub/Sub + WebSockets) and async JQL indexing (CDC Outbox -> Elasticsearch).
Trade-Offs
Gains predictable p99 latency and fault isolation in exchange for explicit bounding, observability, and slightly higher implementation complexity.
Decision Exercise · Make the Call

When Design an Enterprise Project Management & Kanban System (Jira Scale) experiences a sudden 5x traffic spike alongside a slow downstream dependency, which engineering choice best protects system stability?

03
intermediate

O(1) Kanban Reordering with Lexorank & CAS.

Why this matters: Apply Lexorank midpoint calculation and optimistic version checks to handle concurrent board drags.

When a user drags issue ENG-42 between two cards in the In Progress column, the service validates the workflow transition, computes the Lexorank midpoint, and executes an optimistic `UPDATE ...

WHERE version = expected_version`.

INTERMEDIATE

Optimistic Lexorank Reorder

Board Drag PayloadingressLexorank MidpointcomputePostgreSQL CASstorageStoreexecutes single-row update

1.Optimistic Concurrency: Stale clients get HTTP 409 Conflict instead of overwriting edits.

2.Zero Range Locks: Only 1 issue row is locked per drag-and-drop.

Lexorank + optimistic `version` CAS keeps board reordering fast and conflict-safe.

04
intermediate

Real-Time Board Sync via Redis Pub/Sub & WebSockets.

Why this matters: Broadcast committed issue updates to all active board viewers in under 50ms.

Polling every 5 seconds wastes bandwidth and shows stale card positions.

Once PostgreSQL commits, the service publishes a compact delta event ({issueId, status, rank, version}) to Redis Pub/Sub channel board:{board_id}.

INTERMEDIATE

WebSocket Board Delta Fan-Out

Issue ServicecomputeRedis Pub/SubbrokerWebSocket GatewaysoutputStorefans out to active viewers

1.Version Ordering: Clients ignore deltas with version <= local_version.

2.Graceful Fallback: Disconnected clients catch up via /boards/{id}/delta?since=ts.

Redis Pub/Sub decouples stateless API writes from stateful WebSocket board connections.

06
advanced

Immutable Audit Log & Attachment Storage.

Why this matters: Store compliance-grade issue change history and large binary attachments without bloating OLTP tables.

Think of Immutable Audit Log & Attachment Storage as the intuition layer for Design an Enterprise Project Management & Kanban System (Jira Scale): Store compliance-grade issue change history and large binary attachments without bloating OLTP tables.

Enterprise compliance requires an immutable trail of every status, assignee, and permission change. Append-only audit events stream to partitioned storage (or object-backed cold tiers after 90 days), while attachments upload directly from the browser to S3 via short-lived pre-signed URLs after virus scanning.

ADVANCED

Direct-to-S3 Pre-Signed Uploads

Browser ClientclientAttachment ServicecomputeS3 + AV ScannerstorageStoreuploads binary directly

1.Zero Proxy Bottleneck: API servers never buffer 50MB binary attachments in RAM.

2.Immutable Audit: Change logs are append-only and partitioned by month.

Pre-signed S3 uploads offload binary traffic from API servers while audit logs stay append-only.

07
advanced

Large Backlog Pagination & Sprint Rollup Caching.

Why this matters: Keep boards with 50,000+ historical issues fast via active-sprint partitioning and keyset pagination.

Think of Large Backlog Pagination & Sprint Rollup Caching as the intuition layer for Design an Enterprise Project Management & Kanban System (Jira Scale): Keep boards with 50,000+ historical issues fast via active-sprint partitioning and keyset pagination.

Loading all 50,000 historical Done issues onto a Kanban board destroys browser and DB performance. Active boards query only non-archived issues (archived_at IS NULL) using keyset pagination on (rank, id), while sprint burndown metrics are pre-aggregated in Redis/materialized views on issue transition.

ADVANCED

Keyset Pagination on Active Issues

Partial B-TreeIndexindexKeyset CursorcomputeVirtualized BoardoutputStorestreams 100-issue slices

1.Partial Index: Excluding archived issues shrinks the hot B-tree index by >80%.

2.O(1) Seek: Keyset pagination on `rank` avoids slow OFFSET scans.

Partial indexes and keyset cursors on `rank` keep massive enterprise boards responsive.

Practice · Explain the consequences

Practice: Make the trade-off yourself.

Question 1 of 3
Score: 0/3

Why should the Issue Service write to an `outbox_events` table in PostgreSQL instead of updating Elasticsearch synchronously during an issue edit?

Recommended Learning Flow