4 ms·
Sure. Everything described in the article could be crammed into a single process. Instead of using a database, you could store the bitset in a file and mmap it.
by 10000truths 2y ago
Sure. Everything described in the article could be crammed into a single process. Instead of using a database, you could store the bitset in a file and mmap it. And instead of using a reverse proxy, you could handle the HTTP requests and WebSocket connections directly from the application.
- intelVISA 2y agoAll that cloud infra and Very Smart system design for what could be served by a single dedi & AF_XDP in C++/Rust. Always wonder why clearly smart people put themselves through these heroic gymnastics just to avoid learning a bit of <sys/socket.h> Still a cool write-up B).
- eieio 2y agoFWIW I think it'd be a huge mistake for me to spend a bunch of time learning to write performant code! My takeaway from this experience is that I have no idea which of my sites is going to be popular - most of my projects are not nearly this successful - and that I should be optimizing for speed of creation, not speed of an individual project. My comparative advantage is "writing ok code and making ok decisions very quickly" and I'm going to continue to lean into that.