THN Interview Prep

Design Patterns Index

Reference notes for Gang-of-Four (GoF) patterns plus common concurrency primitives used in interviews and production systems.

Patterns pair well with LLD case studies and the LLD template.


Creational

How objects are created so construction stays flexible and decoupled from usage.

PatternGuide
SingletonSingleton
Factory MethodFactory Method
Abstract FactoryAbstract Factory
BuilderBuilder
PrototypePrototype

Structural

How classes and objects compose into larger structures.

PatternGuide
AdapterAdapter
BridgeBridge
CompositeComposite
DecoratorDecorator
FacadeFacade
FlyweightFlyweight
ProxyProxy

Behavioral

How objects collaborate and distribute responsibility.

PatternGuide
Chain of ResponsibilityChain of Responsibility
CommandCommand
InterpreterInterpreter
IteratorIterator
MediatorMediator
MementoMemento
ObserverObserver
StateState
StrategyStrategy
Template MethodTemplate Method
VisitorVisitor

Concurrency

Patterns for parallel work, fan-out/fan-in, async messaging, and failure containment.

PatternGuide
Worker poolWorker pool
Fan-out / fan-inFan-out / fan-in
Pub/sub (concurrency angle)Pub/sub (concurrency angle)
Circuit breakerCircuit breaker

Last updated on

Spotted something unclear or wrong on this page?

On this page