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
worker 1 seq 1, machine 1 647949503692865537
worker 1 seq 2, machine 1 647949503692931073
worker 2 seq 1, machine 2 647949503692865538
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.
Built at this layer
- 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-aliveLayer 4 of 10
Transport
TCP and connections
Ordered, reliable bytes over an unreliable network, and one thread juggling thousands of connections.
$ redis-cli127.0.0.1:6379> SET layer transportOK127.0.0.1:6379> GET layer"transport"127.0.0.1:6379> PINGPONGLayer 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
16×
faster on mandelbrot.bf
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) = 7Layer 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
| Offset | Bytes | Instruction | From |
|---|---|---|---|
| 00 | 69 02 40 39 | ldrb w9, [x19] | Add(5) |
| 04 | 29 15 00 11 | add w9, w9, #5 | |
| 08 | 69 02 00 39 | strb w9, [x19] | |
| 0c | 73 0a 00 91 | add x19, x19, #2 | Move(2) |
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