SaaS: The Enterprise Onboarding
Hard · system design problem
Your biggest customer ever starts importing ten years of data on a Tuesday afternoon — on the shared stack — while half your customers’ webhook endpoints slow down. Existing tenants must not notice.
A multi-tenant SaaS: tenants call the API through Kong; the API writes to a shared PostgreSQL primary, indexes documents in Elasticsearch (one index request per write) and emits webhook events through Kafka to webhook workers, which POST them to customers’ endpoints. At T+20s a new enterprise tenant starts its data import: 150× its normal rate for the rest of the day; its contract promises 3,000 records/s. At T+60s many customers’ endpoints slow down (2 s per call). The import may take as long as it takes; webhooks must arrive within five minutes. The SLO counts existing tenants.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.