hakkadaikon on Nostr: Previously, I thought that if I only considered communication without considering ...
Previously, I thought that if I only considered communication without considering database storage, I could create the fastest Nostr relay possible by implementing a websocket library on top of C language + DPDK.
For example, instead of saving the data in storage, the data received via DPDK is stored in hugepage, and when a REQ is received from the client, the EVENT is extracted from hugepage and returned.
However, I realized that even just trying it would require a lot of effort, so I'm leaving it as a "snack" for something I want to do someday.
There seems to be OSS available for implementing the TCP/IP protocol stack on top of DPDK, but it looks like you will need to implement the layers above that yourself.
Published at
2024-09-14 21:34:08Event JSON
{
"id": "cb972b197cb337771a479508d732864b7856e8ec523d8b999b585ca716df0b9c",
"pubkey": "101b30ee88c27a13de68bf7c8c06368ea3e3e837641595c18675677d18a46a45",
"created_at": 1726342448,
"kind": 1,
"tags": [],
"content": "Previously, I thought that if I only considered communication without considering database storage, I could create the fastest Nostr relay possible by implementing a websocket library on top of C language + DPDK.\n\nFor example, instead of saving the data in storage, the data received via DPDK is stored in hugepage, and when a REQ is received from the client, the EVENT is extracted from hugepage and returned.\n\nHowever, I realized that even just trying it would require a lot of effort, so I'm leaving it as a \"snack\" for something I want to do someday.\n\nThere seems to be OSS available for implementing the TCP/IP protocol stack on top of DPDK, but it looks like you will need to implement the layers above that yourself.\n",
"sig": "c8681f47e0da980e03a09088edaa0c294ecc505fde4cc903a34577c2b494be4d83fe1ca9fbd42cae11016c05b26d650f934bc270f33459a88fc4874225bd10fd"
}