Architecture decisions
Why the To-Do App stores tasks in Postgres, and why reminders go through a queue.
Use Architecture decisions to record a technical choice, the options considered, and the reasons for the decision. The To-Do App has two accepted decisions: store tasks in Postgres and deliver reminders through a queue.
Decision records
What was chosen, and the alternatives that lost.
Storage and reminder delivery
Both records are accepted. The workspace groups cards by status: In progress (proposal, review), Accepted, and Closed (rejected, superseded).
Postgres over local-only storage (ADR-001, Data, decided 2 Mar 2026). Store tasks in Postgres through the Tasks API so they remain available across devices. Postgres supports the foreign keys between users, lists, tasks, and reminders, with a central backup process. Reads require the API to be available. Offline capture remains unresolved in Should tasks sync offline?
The alternatives were browser-only storage, which can be lost when browser data is cleared, and device-local SQLite, which would need additional work for shared backups and server-side reminders.
Connections lists the tech node Node.js API, the component Postgres, and the four tables users, todo_lists, tasks, and reminders. These links identify the parts of the design affected by the choice.
Push reminders via a queue (ADR-002, Messaging, decided 4 Mar 2026). The Tasks API enqueues reminders for a notification worker to deliver. The worker records delivery and handles retries. This keeps provider failures out of task-saving requests and lets delivery scale separately from the API.
The alternatives were sending during the save request, which would expose the request to provider timeouts, and scheduling inside the API process, which would tie scheduling to the API’s lifecycle and scaling.
Connections lists Reminder queue, Notification worker, Push / email provider, the process step of the same name, and the use case Get a due-date reminder.
Node types
This layer has one artifact type: the decision record. Its card shows status, category, and the number of options. The inspector holds the problem, context, decision, rationale, consequences, and alternatives.
- Decision recordPostgres over local-only storageWhat was chosen, and which alternatives lost.
Maintaining decisions
- A record holds the problem, the context, the options and their trade-offs, the decision, the rationale, and the consequences. Status is proposal, review, accepted, rejected, or superseded.
- To record a change of direction, create a new decision and link it as superseding the previous one. Neither decision in this example has been superseded.
- Link the artifacts the decision constrains — components, tables, and process steps — from Connections. To include a decision in a package, use that package’s Anchors tab. These links let you find the designs affected by a decision.
- Use High-level design for runtime topology, Low-level design for a component’s internals, and Implementation Packages to define the work needed to implement a change.
Next
Continue to High-level design to lay out the components required by these decisions.