A collection of system design exercises. Each exercise is a self-contained project demonstrating the design and implementation of various distributed systems concepts.
- AI Code Assistant - A system design exercise for building an AI-powered coding assistant.
- Kafka Transactional Messaging - Implementation of reliable message processing using Kafka transactions.
- Write-Ahead Log (WAL) - A low-level implementation of a write-ahead log for data durability.
- S3 Clone - A minimal implementation of an Amazon S3-compatible object storage service with support for buckets and objects.
- Kubernetes Custom Controller - A custom Kubernetes controller that manages Task resources to execute commands within the cluster.
- SQL Parser - A simplified SQL parser implementation in Go, focusing on PostgreSQL's query processing internals.
- Cassandra SSTable - An implementation of a simplified version of Cassandra's SSTable storage format.
- HNSW Vector Search - A high-performance implementation of the HNSW algorithm for approximate nearest neighbor search.
-
LLM from Scratch - A step-by-step implementation of a language model from the ground up, covering:
- Neural network fundamentals
- Transformer architecture
- Training and inference optimization
- Tokenization and text generation
-
RocksDB Clone - A step-by-step implementation of a key-value store inspired by RocksDB, covering:
- LSM Tree Storage Engine
- Write-Ahead Log with Crash Recovery
- SSTable Implementation
- Compaction Strategies
- MVCC (Multi-Version Concurrency Control)
- Column Families
- Merge Operators
-
SIMD-POC - A proof-of-concept demonstrating SIMD (Single Instruction, Multiple Data) optimizations in Rust, including:
- Vectorized operations for performance-critical code paths
- Cross-platform SIMD using Rust's portable_simd
- Performance benchmarking and comparison with scalar implementations
- Clone the repository
- Navigate to an exercise directory
- Run
go test ./...
to run tests - Check the exercise's README for specific instructions
- Clone the repository
- Navigate to an exercise directory
- Run
cargo test
to run tests - Check the exercise's README for specific instructions