@al1r4d you might want to have a look at #snac2 which is a very minimalistic but awesome Fediverse server, written in C. Guess, you can see several hints