Catalogue / postnl-2023-event-broker-tenancy

PostNL's stack-per-endpoint event broker hit deployment rate limits at about 100 stacks and nearly ran out of IAM roles at 560

PostNL, 2023. Event-Broker e-Commerce (EBE), an internal event routing platform.

Organisation
PostNL
Evidence
Reported from production
Source
The single-tenancy to multi-tenancy spectrum

Luc van Donkersgoed's Notes, published 2023-12-08

Records

Decision#d1

Give each event endpoint and subscription its own stack of resources, configured once at deploy time

Decision#d2

Share IAM roles between Lambda functions to stay under the account's 5000-role limit

Failure#f1

Updating about 100 stacks in parallel crossed the Lambda control plane rate limit and left stacks in UPDATE_ROLLBACK_FAILED

Decision#d3

Cap stack deployments at 50 at a time with an outer and an inner Step Functions state machine

Decision#d4

Plan: replace per-tenant stacks with one multi-tenant ingress service and one egress service

Decision#d5

Under consideration: split the multi-tenant service into three tiers and promote deployments tier by tier

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.