Intermediate · 5 steps
Reliable multi-tenant tracking
Follow location data from an isolated ingestion boundary to an ordered live view and a scoped public link.
Before you start
HTTP APIs, SQL transactions, and basic WebSocket concepts. Use synthetic locations and identities.
What you will make
A tenant-isolation matrix, a retry-safe ingestion contract, and a reconnect scenario you can explain.
01 · Book chapter
Establish the tenant boundary ↗
Carry organization identity through access control and relational constraints.
Put it to work
Model two organizations with overlapping subject names. Trace tenant context and a cross-tenant child reference through one transaction.
Keep as evidence: An access matrix and a foreign-key example that rejects the cross-tenant reference.
02 · Book chapter
Make offline retries identifiable ↗
Distinguish batch identity, point identity, and observation ordering.
Put it to work
Replay a batch after a lost response, then reuse its ID with a changed payload and restart a device sequence in a new epoch.
Keep as evidence: A table of accepted replays, idempotency conflicts, and distinct observations.
03 · Book chapter
Protect the latest-state projection ↗
Preserve useful history while preventing late data from moving the live marker backwards.
Put it to work
Process a newer observation followed by an older offline upload. State a deterministic winning comparison and separate movement from connection status.
Keep as evidence: A three-event timeline showing history and latest state independently.
04 · Book chapter
Recover a disconnected live client ↗
Build a live view from an authorized snapshot and recoverable durable deltas.
Put it to work
Disconnect between the snapshot and subscription. Describe the cursor, replay, deduplication, and fresh-snapshot fallback.
Keep as evidence: A reconnect sequence that does not treat an open socket as the source of truth.
Practice in the browser
Recover an ordered tenant stream →05 · Book chapter
Minimize public tracking data ↗
Bind a share capability to purpose, scope, expiry, and server-enforced precision.
Put it to work
Design a temporary delivery link with delayed approximate location. Attempt to request extra history and exact coordinates through query parameters.
Keep as evidence: A capability record and response policy that cannot be broadened by the client.
Pause and check
Follow identity, ordering, and recovery
Choose an answer for every scenario, then check your reasoning. Progress is saved only in this browser.
Your checklist is saved only on this device. Keep your own evidence alongside each exercise. Follow new guides →