Skip to content
Tech Intuition
Tech Intuition

Appearance

Theme

Signal · Dark with amber

Background

Slow stars and the odd comet

Connect

Company guides · Lesson 44 of 44

Atlassian system design interview: what Atlassian publishes and how to answer

What Atlassian says about its 60-minute system design interview, how laddered follow-ups work, and a worked design that stops one customer's traffic slowing everyone else in a multi-tenant product.

GuideAppliedAtlassian guide12 min readUpdated

  • 1 architecture diagram
  • 1 sequence flow
  • 2 data models
  • 1 API design
  • 5 interviewer follow-ups
  • 4 self-checks

Read first: A framework for system design interviews

By the end you will be able to
  • State what Atlassian says its system design interview assesses, and what a laddered follow-up is.
  • Open the way Atlassian's guide asks, by understanding the problem first, and keep the customer in the design.
  • Design per-tenant limits and isolation for a multi-tenant product, and explain the cost of each choice.
  • Follow a design up the ladder, from one service to cells, and back down to the simplest thing that works.

Atlassian's handbook describes the design interview in a few paragraphs, and they are specific enough to prepare against.

What Atlassian says about the design round

  • Length and purpose. A 60-minute session that is "a technical interview, but that doesn't mean the goal is code". The fullstack guide says its purpose is for you "to demonstrate technical depth, breadth, and proficiency through designing a solution to an established problem".
  • The kind of problem. The interviewer chooses "from a set of structured questions" about "the problems we solve at Atlassian, from architectural challenges to scaling systems under specific conditions".
  • What they want to see. "How you explore an issue: what questions you would ask, how you'd talk through constraints like reliability and cost, who you might partner with for help, and which technologies you'd use."
  • No single answer. "There's no one right answer!" But it is "a practical, not theoretical, conversation": the handbook asks you to "draw from your previous experience and use precise examples".
  • Laddering. Follow-ups "can get more, or less, challenging as you progress". The interviewer "might ask you to consider a different approach, or see how you adjust your thinking if a new trade-off is introduced".
  • What is assessed. The fullstack guide: "your problem-solving thought process, decision making and operational considerations such as performance and reliability".

The guide's own preparation advice has two headings, and both are instructions:

Atlassian's adviceWhat to do
"Seek first to understand": start "with fundamentals and then building in complexity", and "ask any clarifying questions upfront"Spend the first minutes on questions. Draw the simplest design that works before adding anything
"Keep the customer in mind and how your solution might perform and scale"For each decision, say what a customer would notice

One phrase in the handbook is unusual and worth using: "who you might partner with for help". In a design answer, that sounds like: "I would ask the security team to review how tenants are identified at the edge", or "I would check this limit with whoever owns the database, because they know its real ceiling."

How to read a laddered follow-up

A ladder has a direction, and each direction is asking something different.

The interviewer saysWhat it is testingHow to respond
"Now there are ten times as many customers"Whether you know what breaks firstName the first bottleneck, then change one thing
"Suppose we cannot afford that"Cost as a real constraintOffer the cheaper design and say what it gives up
"What if we did it this other way?"Whether you can weigh an idea that is not yoursGive its strengths honestly, then choose
"Let's simplify: just one region"The ladder going down, to find where you are solidTake the simpler problem seriously and answer it fully

The handbook says this is how Atlassian assesses learning agility: "we want to know how well you think on your feet". Changing your design because of new information is the behaviour being looked for.

HLD

Worked design: one customer must not slow down the rest

This is our own practice problem. A product is used by many companies. Each company is a tenant: its users, its data, its own address. All tenants share the same servers and databases. One tenant runs a script that sends a hundred times its normal traffic, and every other tenant's pages get slow. Design the system so that this cannot happen.

Seek first to understand. Questions, with the answers assumed here:

  • How many tenants, and how uneven? 200,000 tenants. Most are small; a few hundred are very large.
  • What is the load? 20,000 requests a second at peak across everyone.
  • What is the heavy traffic? Mostly automation: scripts and integrations calling the API. Sometimes a bug in a tenant's own tooling.
  • What must never be blocked? A person using the product in a browser should be the last to be refused.
  • What does a refused caller need? A clear answer and when to retry.
  • Do tenants pay for different tiers? Yes, three tiers with different allowances.

The simplest design that works. One limit per tenant, checked at the edge, with a shared counter.

Fig. Per-tenant limits at the edge
Fig. Per-tenant limits at the edge

The decisions, each with what a customer would notice:

  • Identify the tenant at the edge. From the address or the credential, before any work is done. A request that cannot be tied to a tenant gets a small anonymous allowance. Refusing early is cheap; refusing after a database query is not.
  • A token bucket per tenant. It allows short bursts, which real usage has, and holds a steady average. A fixed window would let a script send double at each window boundary.
  • Two classes of traffic. Interactive and automation get separate buckets. A runaway script empties the automation bucket and the tenant's own people keep working. This is the decision customers notice most: their script is throttled, their site is not down.
  • Allowances by tier, in config. Cached at the gateway and refreshed every minute, so the limiter does not depend on a live call to a config service.
  • A useful refusal. 429 with Retry-After and headers showing the allowance and what is left, so a well-written integration slows itself down.
  • Fail open, with a local ceiling. If the shared counters are unreachable, each gateway falls back to a local limit per tenant. Tenants can briefly exceed their allowance; nobody is locked out by the limiter's own failure.
Fig. A runaway script, and the same tenant's user
Fig. A runaway script, and the same tenant's user

LLD

The data model and the API

tenant_limitsconfig, cached at the gateway
  • tiertext

    free, standard or enterprise

    PK
  • classtext

    interactive or automation

    PK
  • rate_per_secondint

    steady refill

  • burstint

    bucket size

A tenant may have an override row. Overrides expire, so a temporary increase does not become permanent by accident.

bucketsshared cache, one key per tenant and class
  • keytext

    tenant id and class

    PK
  • tokensfloat

    what is left

  • updated_attimestamp

    refill is computed from the elapsed time, in one atomic step

GET/v1/issues
auth
the tenant comes from the site address or the API token
RateLimit-Limit
the allowance for this tenant and traffic class, on every response
RateLimit-Remaining
tokens left, on every response
  • 200allowed
  • 429over the allowance. Retry-After says how many seconds to wait
  • 503the service is shedding load. This is not the tenant's fault, and is counted separately

The endpoint is only an example; the headers and the two refusals apply to every call. Keeping 429 and 503 apart matters to the customer. One means "you are sending too much". The other means "we are overloaded". Support tickets are much shorter when the response says which.

Senior depth

Up the ladder

Interviewer follow-upL5A tenant stays under its request limit but sends a few very expensive requests. Everyone slows down again. Now what?How to answer

Counting requests assumes they cost the same, and they do not. Add a second budget measured in cost: database time or rows scanned per tenant per second, charged after each request completes. A tenant that exhausts it has its expensive endpoints throttled first. Also cap the work one request can do, with a query timeout and a page size limit, so no single request is unbounded. The trade-off is fairness against simplicity: cost budgets are harder to explain to customers than "100 requests a second".

Interviewer follow-upL6The limiter is working, but one huge tenant's legitimate traffic still slows the tenants that share its database shard.How to answer

Limits control how much is sent; they do not isolate what is shared. Move the largest tenants to their own shards, or to a pool of shards reserved for large tenants, and keep small tenants packed together. Place by measured load, not by tenant count. On the application servers, cap the concurrent requests any one tenant can hold (a bulkhead), so a slow tenant cannot occupy every worker. Say the cost: dedicated capacity sits idle part of the time, which is what the higher tier pays for.

Interviewer follow-upL6Suppose we cannot afford a shared counter lookup on every request.How to answer

Then count locally and reconcile. Each gateway keeps its own bucket per tenant, sized as its share of the tenant's allowance, and reports usage to the shared store every few hundred milliseconds, which hands back an adjusted share. Limits become approximate: a tenant whose traffic lands unevenly across gateways may be refused a little early or allowed a little over. For protecting shared capacity that is accurate enough, and the request path has no network call. This is the ladder going towards cost, and the answer gives up precision on purpose.

Interviewer follow-upL7A bad deployment, not a tenant, takes the product down for everyone. How do you limit that?How to answer

The same idea one level up: do not let everything share one fate. Split the fleet into cells, each a complete copy of the service with its own servers and data, and assign each tenant to one cell. A change rolls out to one cell first, then the rest, with automatic checks between steps, so a bad change reaches a fraction of tenants. A thin routing layer maps tenant to cell and must be the simplest, most carefully changed part of the system. The costs are real: more capacity overhead, uneven cells when a tenant grows, and tooling to move a tenant between cells. Raise who you would partner with: the teams that own deployment and the database, since cells change how both work.

Interviewer follow-upL5Let's simplify. One region, a thousand tenants, one database. What is the least you would build?How to answer

The ladder going down, so answer it fully and resist adding machinery. A token bucket per tenant in the gateway's own memory, two traffic classes, a query timeout, and a dashboard showing the top tenants by load. With one gateway there is no shared counter to build. With a thousand tenants there is no need for cells. Add the shared counter when there is a second gateway, and per-tenant shards when one tenant's load shows up in everyone's latency.

Before you finish

Atlassian's guide names performance and reliability as operational considerations, and the handbook names cost. Close by walking the design against them:

ConsiderationIn this design
ReliabilityThe limiter fails open with a local ceiling; interactive traffic is protected from automation
PerformanceThe check is one atomic operation at the edge, or none in the local variant
CostShared capacity for small tenants, dedicated capacity only where load justifies it
The customerA throttled script gets 429 with Retry-After; the customer's own users keep working
OperationsA dashboard of top tenants by load, and separate counts of 429 and 503

Summary

Atlassian describes a 60-minute, practical design conversation with no single right answer, built from structured questions that ladder up or down. It assesses your problem-solving process, your decisions, and operational considerations such as performance and reliability, and it asks you to understand first and keep the customer in mind. In the worked design, per-tenant token buckets with separate interactive and automation classes stop one customer slowing the rest; cost budgets, dedicated shards and cells are the steps up the ladder, and an in-memory bucket is the step down.

Check yourself

QuestionWhat does Atlassian say it wants to understand in the system design interview?Reveal answer

How you explore an issue: the questions you would ask, how you talk through constraints like reliability and cost, who you might partner with for help, and which technologies you would use. The fullstack guide adds your problem-solving process, decision making, and operational considerations such as performance and reliability.

QuestionWhy give interactive and automation traffic separate buckets?Reveal answer

So a runaway script can only exhaust the automation allowance. The same tenant's people in browsers keep working, which turns "our site is down" into "our script is being throttled".

QuestionA tenant is under its request limit and still slows everyone down. Name two fixes.Reveal answer

A cost budget (database time or rows scanned per tenant) alongside the request count, and isolation of what is shared: dedicated shards for the largest tenants and a cap on concurrent requests per tenant on the application servers.

QuestionWhich parts of this guide are published by Atlassian and which are reported by candidates?Reveal answer

Published by Atlassian: the length and purpose of the interview, laddered questions, what is assessed, and the two pieces of preparation advice. Reported by candidates: nothing in this guide. The multi-tenant limiting problem and its design are our own practice material.

Sources

Lesson 44 of 44

That completes the track.

Track completeBack to System design

Send a message

It goes straight to my inbox. I usually reply within a few days.