Labs Catalog

All Available Labs

Master software primitives through first-principles theory, interactive visual sandboxes, predictive challenges, step-by-step implementation blueprints, and idiomatic production code in Go, TypeScript, Python, and Java.

Distributed Systems
Intermediate
~25 min

Rate Limiting

Control ingress throughput and defend upstream services against resource exhaustion, DDoS, and cascading failure.

Token BucketLeaky BucketSliding Window Counter+3
Interactive Simulator IncludedLaunch Lab
Reliability
Intermediate
~25 min

Circuit Breaker

Prevent cascading failure by detecting downstream distress, fast-failing traffic, and orchestrating controlled probe recoveries.

Cascading FailureCLOSED / OPEN / HALF-OPENFailure Thresholds+3
Interactive Simulator IncludedLaunch Lab
Reliability
Beginner
~20 min

Retry + Exponential Backoff

Survive transient network anomalies by progressively backing off retry attempts with randomized jitter to prevent synchronized retry storms.

Transient vs Permanent ErrorsExponential BackoffFull Jitter vs Equal Jitter+3
Interactive Simulator IncludedLaunch Lab
Reliability
Intermediate
~25 min

Idempotency

Guarantee that repeating an identical mutating operation produces the exact same system state and response without duplicate side effects.

Idempotency KeysAt-Least-Once DeliveryNetwork Partitions+3
Interactive Simulator IncludedLaunch Lab
Data
Intermediate
~30 min

Caching Strategies & Invalidation

Accelerate read throughput by orders of magnitude while mastering Cache-Aside, Write-Through, stampede defense, and cache consistency.

Cache-Aside (Lazy Loading)Write-Through & Write-BackCache Stampede (Thundering Herd)+3
Interactive Simulator IncludedLaunch Lab
Messaging
Intermediate
~25 min

Message Queues & Producer-Consumer

Decouple system components, absorb asynchronous traffic spikes, and manage worker task distribution with acknowledgements and Dead-Letter Queues.

Asynchronous ProcessingVisibility TimeoutMessage Acknowledgement (ACK/NACK)+3
Interactive Simulator IncludedLaunch Lab
Messaging
Intermediate
~25 min

Publish-Subscribe & Event Fan-Out

Broadcast domain events to multiple independent subscribers without coupling publishers to consumer implementations or availability.

Topics & SubscriptionsFan-Out DistributionConsumer Groups+3
Interactive Simulator IncludedLaunch Lab
Distributed Systems
Advanced
~30 min

Consistent Hashing & Ring Partitioning

Distribute keys across a dynamic cluster of nodes so that adding or removing a node rehashes only K/N keys rather than 100% of the dataset.

Hash Ring TopologyModulo Hashing FlawVirtual Nodes (vnodes)+3
Interactive Simulator IncludedLaunch Lab
Distributed Systems
Advanced
~30 min

Distributed Locks & Fencing Tokens

Coordinate mutual exclusion across independent processes and survive node crashes, network pauses, and GC stalls using leases and monotonic fencing tokens.

Mutual ExclusionLeases & TTL ExpirationAtomic Acquisition (SET NX PX)+3
Interactive Simulator IncludedLaunch Lab
Data
Advanced
~35 min

Replication & Quorum Consistency

Replicate data across fault-tolerant nodes and balance consistency versus latency using Write (W) and Read (R) quorums.

Primary-Replica TopologiesSynchronous vs Asynchronous ReplicationReplication Lag & Stale Reads+3
Interactive Simulator IncludedLaunch Lab
Machine Learning
Beginner
~20 min

Linear Regression

Fit hyperplanes to multidimensional feature spaces by minimizing quadratic prediction residuals via Ordinary Least Squares and gradient descent.

Ordinary Least Squares (OLS)Mean Squared Error (MSE)Normal Equation+3
Interactive Simulator IncludedLaunch Lab
Machine Learning
Beginner
~25 min

Gradient Descent

Iteratively optimize multi-dimensional non-linear objective functions by navigating the negative gradient vector across high-dimensional loss landscapes.

First-Order OptimizationLearning Rate DynamicsStochastic Gradient Descent (SGD)+3
Interactive Simulator IncludedLaunch Lab
Machine Learning
Beginner
~25 min

Classification & Decision Boundaries

Partition feature spaces into discrete category regions using linear decision hyperplanes and non-parametric neighborhood boundaries.

Logistic RegressionBinary Cross-Entropy (Log-Loss)Decision Boundaries+3
Interactive Simulator IncludedLaunch Lab
Machine Learning
Intermediate
~25 min

K-Means Clustering

Partition unlabeled multidimensional observations into K cohesive clusters via iterative Expectation-Maximization and Voronoi tessellation.

Lloyd's AlgorithmExpectation-Maximization (EM)Within-Cluster Sum of Squares (Inertia)+3
Interactive Simulator IncludedLaunch Lab
Machine Learning
Beginner
~20 min

Decision Trees

Recursively partition feature space into orthogonal axis-aligned rectangular hypercubes using information-theoretic split criteria.

Recursive Binary SplittingGini Impurity & Shannon EntropyInformation Gain+3
Interactive Simulator IncludedLaunch Lab
Deep Learning
Intermediate
~25 min

Neurons & Forward Propagation

Compose linear affine transformations with non-linear activation functions to compute hierarchical feature representations across deep networks.

Artificial Neuron ModelAffine Transformation (z = wᵀx + b)Non-Linear Activation Mapping+3
Interactive Simulator IncludedLaunch Lab
Deep Learning
Intermediate
~20 min

Activation Functions

Inject non-linearity into deep neural computation graphs to prevent mathematical collapse and govern gradient flow during backpropagation.

Non-Linearity & Mathematical CollapseVanishing & Exploding GradientsRectified Linear Unit (ReLU)+3
Interactive Simulator IncludedLaunch Lab
Deep Learning
Advanced
~30 min

Backpropagation

Propagate prediction error backward through arbitrary computation graphs using the multivariable Chain Rule to compute exact analytical parameter gradients.

Reverse-Mode Automatic DifferentiationMultivariable Chain RuleError Deltas (δ = ∂L/∂z)+3
Interactive Simulator IncludedLaunch Lab
Deep Learning
Intermediate
~25 min

CNNs & Convolution

Extract translation-invariant spatial features from multidimensional signals using sliding kernel convolutions, parameter sharing, and pooling.

2D Discrete Cross-Correlation / ConvolutionSliding Kernels & Feature MapsStride & Zero-Padding (Valid vs Same)+3
Interactive Simulator IncludedLaunch Lab
Deep Learning
Advanced
~30 min

Attention Mechanism

Dynamically weight context across sequence positions via Scaled Dot-Product Query-Key-Value routing—the architectural engine of modern Transformers and LLMs.

Scaled Dot-Product AttentionQuery, Key, and Value Projections (Q, K, V)Softmax Temperature Scaling (1 / √d_k)+4
Interactive Simulator IncludedLaunch Lab