Skip to content
StackDecode
System Design
1. System Design FundamentalsAnimated

Maintainability

How easily the system can be understood, fixed and changed.

The idea

Maintainable systems have clear boundaries, tests, documentation and consistent patterns, so changes are cheap and safe.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

UIControllersUse casesEntitiesDatabase
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Dependencies point inward only.

step:
1/4
at:
UI
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Keep components small and focused
  2. 2Write tests around behaviour
  3. 3Document decisions
  4. 4Automate builds and deploys

Where it is used

Long-lived products with changing teams.

Watch out for

Cleverness. Prefer simple code that the next person can follow.

Related