Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

This repo focuses on practical implementation / simulation of System Design

Database Practicals

Relational Databases

  • Design normalized schemas
  • Add indexes & analyze queries
  • Implement transactions
  • Test ACID properties

Isolation Levels

  • Dirty reads
  • Non-repeatable reads
  • Phantom reads
  • READ COMMITTED
  • REPEATABLE READ
  • SERIALIZABLE

Database Scaling

  • Read replicas
  • Write bottleneck simulation
  • Vertical vs horizontal scaling (trial)

DATA DISTRIBUTION & SCALING

Sharding & Partitioning

  • Hash-based sharding
  • Range-based sharding
  • Shard routing logic

Consistent Hashing (Simulation)

  • Hash ring implementation
  • Node addition/removal
  • Minimal rebalancing

CACHING SYSTEMS

Core Caching

  • In-memory cache - Redis
  • Cache-aside pattern
  • Cache hit/miss tracking

Cache Scaling

  • Cache warm-up
  • TTL handling
  • Cache invalidation
  • Write-through / write-back

Multi-Level Caching

  • App-level cache
  • DB query cache
  • CDN-style simulation

ASYNCHRONOUS & EVENT SYSTEMS

Message Queues - RabitMQ

  • Producer–consumer
  • Retry mechanism
  • Dead-letter queue

Message Streaming - Kafka

  • Producer & consumer
  • Partitioning
  • Consumer groups
  • Offset management

Realtime Pub/Sub

  • WebSocket pub-sub
  • Live notification system

TRAFFIC & FAULT TOLERANCE

Load Balancing

  • Round-robin
  • Least connections
  • Health checks

Circuit Breakers

  • Open / closed / half-open states
  • Failure thresholds
  • Fallback logic

RELIABILITY & AUTO-RECOVERY

Replication & Recovery

  • Data replication
  • Backup & restore
  • Failover simulation

Leader Election

  • Leader election algorithm
  • Heartbeats
  • Leader failure handling

STORAGE SYSTEMS

Blob Storage (S3)

  • File upload/download
  • Pre-signed URLs
  • Metadata storage

PROBABILISTIC DATA STRUCTURES

Bloom Filters

  • Implement from scratch
  • False positive testing
  • Cache-penetration prevention

OTHER PROJECTS

  • API + IP Rate limiter using redis
  • Make Scaling Notification ( PUB SUB IGuess)
  • Design and implement tinder feed
  • Design and implement twitter trends
  • Design and implement url shortner
  • Design and implement Recommendation system
  • Design and implement a web crawler
  • Design and implement a fraud detection system

About

System faaddd denge

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages