System Design Atlas

Ticket sales with assigned seats

09 / 10Worked example

Operations and security

Who responds to an open payment, and what proof ends the case?

Operations monitors open orders, the webhook inbox and the outbox. Customer service handles unresolved payment and refund states. Security rules restrict order access and protect external event ingestion.

Starting point The starting point is compensation_pending, inbox and outbox from the critical process.

Assumptions for the example case

Example design for one event with 1,000 numbered seats. Each order contains exactly one seat. Hold, sale, payment and ticket are separate entities. All figures and targets are illustrative assumptions, not provider metrics. Admission scanning, resale, dynamic pricing and multi-seat orders are outside scope. Sources checked on 8 September 2026. The order model covers successful payments, including delayed success; final unpaid cancellations need their own terminal state before implementation.

From operational signal to evidenced order closure

Operational signal, response, ownership and evidenced closure

SignalOld payment_pending orders

Measure the oldest open case, inbox backlog and pending outbox entries.

triggers:
CheckReconcile order and payment status

Operations reads Z-17 at the payment service and checks local history.

Determined
ReactingConfirm, compensate or clarify

Worker repeats outbox; customer service handles unclear cases.

shows:
CompletionPayment-success branch: confirmed or refunded

Ticket and refund remain auditable; unpaid cancellations need their own conclusion.

Webhook signature, access to B-17 and separate operating roles protect the process.

Recovery sample matches inbox, open outbox and orders in an isolated test environment.

Reconcile an unknown payment result. Treat it as neither a proven failure nor a ticket confirmation.

Signal, testing, response, responsible role and closure form a continuous operational case.

Initial operations plan

SignalReactionResponsible role
Oldest payment_pending order over limit to be definedReconcile external Z-17 with local B-17; check worker and inbox backlogs.Platform operations
Outbox retry failed several timesCheck the refund command and refer B-17 to customer service if needed.Customer service with platform operation
Invalid Webhook SignatureReject message, log a security event and do not produce a business effect.Platform operations
Restore sampleMatch orders, inbox and outbox in an isolated test environment.Platform operations

Oldest payment_pending order over limit to be defined

Reaction
Reconcile external Z-17 with local B-17; check worker and inbox backlogs.
Responsible role
Platform operations

Outbox retry failed several times

Reaction
Check the refund command and refer B-17 to customer service if needed.
Responsible role
Customer service with platform operation

Invalid Webhook Signature

Reaction
Reject message, log a security event and do not produce a business effect.
Responsible role
Platform operations

Restore sample

Reaction
Match orders, inbox and outbox in an isolated test environment.
Responsible role
Platform operations

Security and restoration rules

Access
Visitors only read their B-17. Operating roles are given separate rights for observation and clarification; they cannot invent payment successes.
Webhook Trust
The API checks signature for unchanged raw data and deduplicates eventId. A browser return does not replace a payment webhook.
Recovery
Backup and restart are tested against open inbox and outbox entries. Deadlines, RTO and RPO must be set before production with responsible parties.
Distinguish unknown from failed
A timeout leaves payment status unknown. A failure evidenced by the payment service is recorded on the payment attempt and creates neither ticket nor refund. While H-17 remains valid, a controlled new payment attempt may be offered. Final order closure without payment is outside this success/compensation example and must be added before implementation.
Roles and sensitive data
Platform operations and customer service are proposed roles; people, duty hours and escalation deadlines are yet to be agreed. Holds, checkouts and order requests remain bound to the respective assigned visitor. Card data remains with the payment service, logs contain references and no complete raw payment data. RTO refers to the restart time, RPO the tolerated data loss; both require agreed values.

Terms in this step

Unknown
Unknown is a valid state when an external outcome has not yet been evidenced. It must not be replaced with an invented failure or success.

Try it yourself

For an old payment_pending order, define a signal, investigation, responsible role and two possible closure outcomes.

A hint for your attempt

A timeout or browser return does not prove payment. Distinguish technical retries from domain investigation.

Compare with a possible solution
Signal and test
Platform operations monitors the age of B-17 and checks the inbox, worker, outbox and Z-17 at the payment service. An invalid signature produces no domain effect.
Completion
Evidenced payment success and valid H-17 permit confirmation with T-17. After late success, only a confirmed refund leads to refunded. A valid hold alone is insufficient. Unknown outcomes remain open for investigation.

Apply to your project

Which open external states need a named role and proof of completion in your company?

Finally, combine decisions, tests, review loops and unresolved agreements into an implementable design.