System Design
3. Client-Server ArchitectureAnimated
Model-View-ViewModel (MVVM)
A view bound to a view model that exposes model data.
The idea
The ViewModel holds UI state and commands; data binding keeps the view in sync automatically.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
The view displays state and sends user actions.
- step:
- 1/4
- at:
- View
1/8
The green dot is a request moving through the system.
Step by step
- 1View binds to the view model
- 2User action triggers a command
- 3ViewModel updates the model
- 4Binding refreshes the view
Where it is used
Mobile and desktop UI frameworks.
Watch out for
Binding magic can be hard to debug.