Catalogue / atlassian-2022-tenant-context-sidecar

Atlassian's Tenant Context Service sidecars cache tenant metadata beside client applications and route around failed regions, at up to 32 billion requests a day

Atlassian, 2022. Tenant Context Service (TCS) and its client sidecar.

Organisation
Atlassian
Evidence
Reported from production
Source
Here’s how one of Atlassian’s critical services consistently gets above 99.9999% of availability

Atlassian Engineering blog, published 2022-08-17

Records

Decision#d1

On a cache miss the sidecar queries its primary TCS and a random secondary at once, through isolated pools

Decision#d2

Accumulate cache invalidation messages for up to one second and publish one merged event

Decision#d3

Replace the SNS and SQS invalidation fanout with a bespoke fanout through S3

Decision#d4

Use the presence of known keys in the sidecar cache as a node health check to catch traffic blackholes

Decision#d5

Have sidecars announce their cached keys to each other in place of a distributed second-level cache

Decision#d6

Decrypt encrypted records inside the sidecar at fetch time and cache the decrypted form

Decision#d7

Offer gRPC between host services and the local sidecar, which became the preferred client over REST

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.