Skip to content

Backends, and the systems underneath them.

I'm Iyad, a backend and systems engineer in Bengaluru, India. I like the layer underneath: how bytes leave a socket, what a database does beneath a query, how code becomes something a CPU runs.

Public project No public project yet

Layer 1 of 10

System

Distributed systems

Many machines agreeing on something with no one in charge. Unique IDs are the smallest honest version of that problem.

Built at this layer

One ID, 64 bits

0
time
seq
machine

worker 1 seq 1, machine 1 647949503692865537

worker 1 seq 2, machine 1 647949503692931073

worker 2 seq 1, machine 2 647949503692865538

Two workers, same 10 ms tick, no coordinator, no collisions. Illustrative IDs.

Layer 2 of 10

Service

Backends and APIs

Auth, rate limits, migrations, and the unglamorous work that keeps a service up for people who never think about it.

Discord servers running Meko
6,300+
Active users
15K+
Commands run
340K+

Layer 3 of 10

Protocol

HTTP/1.1, RESP2, TLS

The rules two programs follow to talk to each other. I like writing the parser myself.

Built at this layer

GET /blog HTTP/1.1Host: iyadzargar.comConnection: keep-aliveHTTP/1.1 200 OKContent-Type: text/html; charset=utf-8Transfer-Encoding: chunkedConnection: keep-alive
bolt answering a keep-alive request. Illustrative.

Layer 4 of 10

Transport

TCP and connections

Ordered, reliable bytes over an unreliable network, and one thread juggling thousands of connections.

Built at this layer

$ redis-cli127.0.0.1:6379> SET layer transportOK127.0.0.1:6379> GET layer"transport"127.0.0.1:6379> PINGPONG
rkv answering a stock redis-cli over TCP. Illustrative.

Layer 5 of 10

Network

IP and routing

Packets finding their way between machines that have never heard of each other.

No public project at this layer yet

Layer 6 of 10

Storage

Databases and storage engines

What a database does beneath a query. Pages, B-trees, write-ahead logs, and the fsync that makes them durable.

No public project at this layer yet

Layer 7 of 10

Compiler

Languages, runtimes, and JITs

Turning text into something faster than the text. Parse it, lower it, fold it, then emit it.

Built at this layer

source +++++>>-- IR Add(5) Move(2) Add(-2)

16×

faster on mandelbrot.bf

Tree-walking interpreter 9.2 s
JIT to AArch64, with run folding 0.56 s
Run folding collapses repeated instructions into one. Timings from the brainfuck.zig README, bars to scale.

Layer 8 of 10

Kernel

Syscalls, readiness, memory

The boundary every program crosses to touch the outside world. epoll, kqueue, mmap, and the cost of each trip.

Built at this layer

kqueue()                                 = 3socket(AF_INET, SOCK_STREAM, 0)          = 4bind(4, {0.0.0.0:6379}, 16)              = 0listen(4, 1024)                          = 0kevent(3, [4: EVFILT_READ], 1, ...)      = 1accept(4, ...)                           = 5read(5, "*1\r\n$4\r\nPING\r\n", 4096)    = 14write(5, "+PONG\r\n", 7)                 = 7
The syscalls behind one PING to rkv on macOS. Illustrative.

Layer 9 of 10

Machine

Instructions and encodings

Where a program stops being text. Thirty-two bits at a time, written straight into executable memory.

Built at this layer

MAP_JIT page, AArch64 4 instructions, 16 bytes
OffsetBytesInstructionFrom
0069 02 40 39ldrb w9, [x19]Add(5)
0429 15 00 11add w9, w9, #5
0869 02 00 39strb w9, [x19]
0c73 0a 00 91add x19, x19, #2Move(2)
Add(5) and Move(2) as AArch64, tape pointer in x19. Illustrative register choice, real encodings.

Layer 10 of 10

Hardware

CPUs, caches, silicon

Pipelines, caches, and branch predictors. The layer that decides how fast everything above it really is.

No public project at this layer yet

About me

I have been programming for the better part of a decade. The first couple of years were on and off, but it has been steady ever since. What I fell for was not a language or a framework. It was computer science itself, the whole of it.

What pulls me hardest is the layer underneath. I want to know how a programming language turns your file into something that runs, what a database does beneath a query, how bytes move once they leave a socket. From network programming to resilient systems, cryptography to compiler internals, I stay curious and pragmatic with it. I do not know everything. I just cannot stop wanting to find out.

“Computer science is no more about computers than astronomy is about telescopes.”
Edsger W. Dijkstra

Toolbox

Languages
  • Go
  • Python
  • Rust
  • Zig
  • JavaScript
System Design
  • High Availability
  • Microservices
  • Caching
  • CAP/PACELC
  • API Design
  • Serverless
  • CDN
Cloud / Infra
  • Docker
  • AWS
  • Hetzner
  • Hostinger
CI/CD
  • Jenkins
  • GitHub Actions
  • GitLab CI/CD
Databases
  • PostgreSQL
  • MySQL
  • SQLite
  • Cassandra
  • ScyllaDB
  • Redis
  • Valkey
  • MongoDB

Got a problem that goes all the way down?

Work, a collaboration, or a question about something on this page. Send me a message.