Learning

What-If Cases

A Dropped Handle Does Not Finish the Work

Trace what remains owed across failure boundaries.

Downloads

Registration records an account and an owed confirmation. The participant leaves. A worker later abandons its delivery handle. Who still owns the unfinished message?

Place the Work Lives Browser Leaves Handle Is Dropped Process Is Lost
Only the browser's memory Work can disappear. Not a service guarantee. No survival.
Workshop's in-memory record Still owned. Still discoverable. Lost with the process.
Appropriately durable intent Can remain owned. Can be reclaimed safely. Can be recovered within its promised durability boundary.

The last row is a requirement on a real durable realization, not a claim about the teaching reference.

Follow-up remains owned after the caller leaves. Recording registration creates pending confirmation. The browser may close while a worker later continues that stored obligation.Follow-up remains owned after the caller leaves. Recording registration creates pending confirmation. The browser may close while a worker later continues that stored obligation.
Engineering Depth

The reference demonstrates one limited survival boundary:

drop(work);
let delivery = shop.pending_confirmation().unwrap();
drop(delivery);
assert_eq!(shop.owed_messages(), 1);

Rust permits dropping values. Moving a ticket into a function does not force the business obligation to complete. The workshop retains the pending fact independently of the returned handle.

Compare an implementation that stores pending work only inside the returned ticket: dropping that ticket could erase the only record of what is owed. Adding a name such as MustDeliver would not change that fact.

A production story that promises restart recovery needs durable intent and source-safe recovery. An outbox is one possible pattern for committing intent alongside local state; the pattern still needs an owner, dispatch behavior and correct settlement.

Your Reflection

New registration is retired. May the system discard all existing pending confirmations automatically?

Worked Discussion

No. Retirement must state how old work finishes, migrates or is cancelled under the applicable authority. Closing the entrance for new work does not settle earlier obligations. The same reasoning applies when a worker, browser or process stops at a boundary the product promised to survive.

Navigation