Skip to content
StackDecode
System Design
1. System Design FundamentalsAnimated

Extensibility

How easily new features can be added without rewriting what exists.

The idea

Extensible designs let you add behaviour by plugging in new parts, using interfaces, events and configuration instead of editing core code.

Watch it work

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

Web adapterTest adapterDomain coreRepo adapterMail adapter
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

The domain core has no knowledge of web, database or email.

step:
1/4
at:
Domain core
1/7

The green dot is a request moving through the system.

Step by step

  1. 1Find the parts likely to change
  2. 2Put them behind stable interfaces
  3. 3Add new behaviour as new implementations
  4. 4Keep the core closed to edits

Where it is used

Products with plugins, integrations or many variants.

Watch out for

Building flexibility nobody asks for. Extend where change is likely.

Related