System Design Atlas

Creator community with feeds and moderation

02 / 10Worked example

Requirements

Which business rule protects the post, and how is the agreed boundary tested?

The system boundary leads to business rules and measurable goals. The central invariant for post B-31 is that reads exclude blocked or deleted posts using their authoritative visibility state, even when an old feed reference exists. An invariant must hold after every completed operation. Quality goals describe measurable operational behaviour.

Starting point Feeds store references to authoritative posts.

Assumptions for the example case

A fictional example design for a local community with text posts, a chronological home feed and traceable moderation. A feed projection with lag below 30 seconds is within the assumed target; from 30 seconds, the backlog is displayed and reported. All figures and test targets are illustrative assumptions.

Business guarantee and measurable limit

Guarantee and preconditions

1
Post B-31Publication content and audience
2
Revision R-31Immutable published revision
3
Decision M-31Authorised block, approval or deletion
Exact limitFeed lag < 30 s within target · Display and report from 30 s

Reads exclude blocked or deleted posts using their authoritative visibility state.

A blocked or deleted post is excluded at read time using its authoritative visibility state, even when an old feed reference exists.

Business requirements (functional)

Further reading
Durable commitment
A blocked or deleted post is excluded at read time using its authoritative visibility state, even when an old feed reference exists.
Evidence and closure
Creator confirms deletion; content access ends.

Operational goals (non-functional)

Further reading
Local processing
Illustrative target: 95% of local commands complete within 800 milliseconds in a 15-minute profile at 50 commands/s. External processing and human waiting time are measured separately.
Observable limit
A feed projection with lag below 30 seconds is within the assumed target; from 30 seconds, the backlog is displayed and reported. The boundary test checks the rule defined for this example; operational evidence remains outstanding.

Enforce blocks on every delivery

Enforce blocks on every delivery

Enforce blocks on every delivery.

A blocked or deleted post is excluded at read time using its authoritative visibility state, even when an old feed reference exists.

A feed projection with lag below 30 seconds is within the assumed target; from 30 seconds, the backlog is displayed and reported. The exercise specifies the input and expected result.

Alternative considered
A response-time target alone leaves invalid business states unchecked.
Trade-off
Strict validation can pause an operation for investigation.
Reassess
Measured processing times or new contracts with media file storage require a fresh review of the targets.

Try it yourself

Separate the business invariant from the 800-millisecond target. Explain the exact limit in this case.

A hint for your attempt

Completing an operation quickly but incorrectly does not satisfy the business guarantee.

Compare with a possible solution
Business rule
A blocked or deleted post is excluded at read time using its authoritative visibility state, even when an old feed reference exists. The counterexample test checks the permitted state.
Operations and boundary
The 800-millisecond target applies to 95% of local commands in the assumed peak profile. A feed projection with lag below 30 seconds is within the assumed target; from 30 seconds, the backlog is displayed and reported.

Apply to your project

Which rule of your project remains binding even with slow processing?

Next: A large creator determines the distribution peak.