Skip to content

Prakhar2275/Systems-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Like System From Scratch 🚀

📌 Overview

This project is a ground-up implementation of a scalable "like" system inspired by real-world architectures used in platforms.

Instead of relying on frameworks or pre-built services, this project focuses on building core system components manually to understand how high-throughput systems actually work.


🎯 Goals

  • Build a custom HTTP server from scratch
  • Design a high-performance like counter
  • Handle concurrent requests efficiently
  • Simulate real-world scaling challenges
  • Understand system design fundamentals

🧠 Concepts Covered

  • Networking (TCP, HTTP)
  • Concurrency (threads, async processing)
  • Queues and background workers
  • Caching strategies
  • Event-driven architecture
  • Load handling and bottlenecks

⚙️ Architecture (Simplified)

Client → HTTP Server → In-memory Cache → Queue → Worker → Database


🚀 Features (Planned)

  • Basic HTTP server
  • Like API endpoint
  • In-memory like counter
  • Event queue system
  • Background worker (batch processing)
  • Load simulation
  • Real-time updates (WebSocket)

📂 Project Structure

  • server/ → HTTP server implementation
  • core/ → business logic (likes, queue, worker)
  • docs/ → architecture and design notes
  • experiments/ → load testing

🧪 Why This Project?

Most beginner projects focus on using existing tools. This project focuses on understanding how those tools are built.


🧭 Future Improvements

  • Distributed system simulation
  • Fault tolerance handling
  • Persistent storage
  • Horizontal scaling

👨‍💻 Author

Built as a learning journey to explore systems engineering from first principles.

About

Scalable Systems From Scratch For Core Functionality

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors