Skip to main content

58 docs tagged with "patterns"

View all tags

Active Object Pattern

Decouple concurrent execution by encapsulating each object as a standalone thread receiving method calls via message passing.

Architecture Patterns & Concepts

Reference guide for common architecture patterns including bounded contexts, sagas, outbox pattern, circuit breakers, bulkheads, sidecars, and service mesh.

Balking Pattern

Fail fast rather than waiting when a condition isn't satisfied, for non-blocking operations with immediate response.

Branch by Abstraction

Manage large refactorings and migrations through feature flags and abstraction layers.

Caching Patterns

Write-through, write-behind, cache-aside, and TTL strategies for reducing database load

CQRS and Read Models

Separate read and write models to optimize for different access patterns and enable flexible data transformation.

Event Sourcing

Store the complete history of changes as immutable events rather than storing only the current state.

Guarded Suspension Pattern

Wait safely for conditions to be met before proceeding using synchronized guard checks and notifications.

Implementation Techniques

Master advanced coding techniques including sentinel values, dummy nodes, index mapping, coordinate compression, offline processing, and meet-in-the-middle optimization.

Interview Preparation

Master technical interview strategies including time management, communication, testing approaches, pattern recognition, and complexity analysis.

Open/Closed Principle

Software entities should be open for extension, closed for modification. Design for change without breaking existing code.

Performance Budgets

Define and enforce performance targets that align with user experience and business goals.

Pipes and Filters Pattern

Process messages through a chain of independent processing stages (filters) connected by data flows (pipes).

Proactor Pattern

Simplify asynchronous I/O by letting the framework manage event notifications and completion handlers.

Problem Analysis

Master systematic problem decomposition, pattern recognition, constraint analysis, and data structure selection for algorithmic problems.

Reactor Pattern

Multiplex I/O events across many connections using a single-threaded event-driven architecture.

Strangler Fig Pattern

Incrementally replace legacy systems by growing new functionality alongside the old.

Thread Pool Pattern

Reuse threads efficiently by maintaining a pool of pre-allocated workers to process tasks.