Design Patterns
Study Design Patterns
Creational, structural, behavioral patterns
Topics
CQRS Pattern
CQRS (Command Query Responsibility Segregation) splits the write path (commands that mutate state and enforce invariants) from the read path (queries that fetch denormalized projections), so each side scales, optimizes, and secures…
Decorator Pattern
Wrap existing services with additional behavior without changing them.
Factory Pattern
Centralize creation of objects (like API handlers or executors) based on configuration or environment.
Mediator Pattern
Define an object that encapsulates how a set of objects interact. The mediator promotes loose coupling by keeping objects from referring to each other explicitly.
Observer Pattern
The Observer pattern lets multiple subscribers react to an event stream — price ticks, order fills, status changes — without the publisher knowing who is listening, giving you loose coupling and easy fan-out. In .NET it is typically…
Strategy Pattern
Encapsulate different trading algorithms or execution strategies under a common interface.