A few weeks ago, "loss.backward()" felt like magic.
Today I have my own autograd engine, neurons, and neural network layers built from scratch.
Still a long way to go (MLPs → Attention → Transformers → GPT), but understanding how the pieces fit together has been incredibly rewarding.
31
Finally wrapped up EventLens 🚀
A developer analytics platform I built from scratch to learn distributed systems.
🛠️ Stack:
• TypeScript
• Kafka
• PostgreSQL
• Kubernetes + Helm
• Prometheus
• Grafana
• Jaeger
• OpenTelemetry
• React
• Browser SDK
Started as an event ingestion API.
Ended as a complete analytics platform with real-time dashboards, observability, and scalable event processing.
Building everything myself—from infrastructure to UI—gave me a much deeper understanding than tutorials ever could.
#buildinpublic #backend #Kafka #Kubernetes #TypeScript #React #OpenTelemetry #DistributedSystems
3
64
Built observability 💫 for my Event Ingestion System 🔥
Added:
• Prometheus
• Grafana
• Custom application metrics
• Queue depth monitoring
• Batch insertion tracking
• Failure metrics
The most exciting part wasn’t the dashboard.
It was watching overload propagate through the system in real time:
traffic spike → Redis queue buildup → workers draining backlog ⚡
Feels less like “backend APIs” now and more like actual systems engineering.
#system_design #observability #grafana #prometheus #metrics
53
✍️ Follow-up on the event ingestion system I’ve been building
⚡ A few weeks ago I thought “scaling a backend” = just optimizing DB queries.
After load testing under 1000 concurrent connections, the real problems hit elsewhere first:
• Socket pressure
• Connection backlogs
• Queue buildup
• Load balancer behavior
• Batching tradeoffs
• Upstream failures
• Event loop saturation
Current architecture:
NGINX → API replicas → Redis queue → batch workers → Postgres
1
43
Some key observations:
• Adding workers didn’t improve API latency much (they drain queues faster, but don’t help request acceptance) 📷
• Redis helped mainly by decoupling queue memory from API memory 📷
• Queues absorb spikes temporarily — they don’t “solve” scaling
Most valuable learning:
Distributed systems are less about writing code and more about understanding bottlenecks, pressure, and tradeoffs 📷
Still experimenting. Next up: durability, backpressure, and worker scaling.
What’s one scaling lesson that surprised you lately? 📷
30
🚀 Your CPU can execute billions of instructions per second...
…but it still spends a huge amount of time waiting on RAM ⏳
Why? 🤔
Because not all memory is equally fast.
⚡ Typical memory latency:
🟢 L1 Cache → ~1 ns
🟡 L2 Cache → ~3–5 ns
🔴 DRAM (Main Memory) → ~50–100 ns
That gap becomes enormous at modern GHz clock speeds 💨
So CPUs use a cache hierarchy to avoid slowing down:
📍Registers → L1 → L2 → L3 → RAM
Think of it like this 🧠
🛠️ CPU Cache = tools kept right on your desk
📦 RAM = walking to the storage room every time you need something
Same tools.
Different distance.
Different speed. ⚡
Without L1/L2 cache, modern processors would spend most of their time just waiting instead of computing 💻🔥
61
My event ingestion system worked great…
Initially, everything looked fast (5–10ms latency).
Then I ran load tests…
💥 latency shot up (~250ms)
💥 requests started timing out
Root cause: DB bottleneck (~3.7K writes/s)
👉 Moved to async processing (queues + worker + batching)
Read more: heyankit.hashnode.dev/i-buil…
57
Built a high-performance URL shortener with Go & React
Backend: Fiber v2 + MySQL + Redis
Frontend: React 19 + Vite + Tailwind
Features:
• Fast URL resolution with Redis caching
• JWT auth with bcrypt password hashing
• Transaction-safe operations
• Built-in monitoring
1
81
Implementing systems at scale ⚡️ to grab the understanding of distributed systems
Check it out: github.com/ydv-ankit/systems…
1
58
🚀 Built a multi-threaded HTTP proxy server in C with cache support from scratch!
✅ Multi-threaded with pthreads
✅ HTTP request parsing & forwarding
✅ Chunked transfer encoding support
✅ Dynamic memory management
✅ LRU Cache support
#CProgramming #Networking #ProxyServer
1
121
GitHub repo: github.com/ydv-ankit/multi-t…
58




