Architecture decision record (ADR)
Write down which constraint tipped the decision so the next person on the team can judge whether the design still fits.
Example entryREST or GraphQL for a new service?
On mobile, the order list only shows the order number and status. The support dashboard also shows line items and shipping history. I'm choosing GraphQL so each screen can request its own fields. Two separate REST endpoints are also an option. When we build the third screen, I'll track how much work it takes to add the fields it needs.
Follow-up
Six weeks later I'm adding a returns screen. The schema already has the order number and status, but it's missing the reason for the return. Adding that field and checking permissions takes half a day. I'll factor that into my estimate for the next screen.
Questions to copy
- What technical problem am I solving, and what constraints do I face?
- Which approaches could work, and why am I choosing this one?
- What will be harder to maintain if I go with this design?
- What did the first change after launch tell me about the cost of maintaining it?