Content
@
0 reply
0 recast
2 reactions
Dan Romero
@dwr.eth
How Farcaster Hubs work Hubs validate, storage and replicate account messages to other hubs in a decentralized way. There are 3 main components: storage, p2p and sync.
8 replies
13 recasts
48 reactions
Dan Romero
@dwr.eth
1. Storageโ Messages received by Hubble are forwarded to the Storage engine which forwards them to the appropriate CRDT Set. Once validated by the CRDT Set, messages are persisted to RocksDB and events are emitted to listeners.
4 replies
1 recast
1 reaction
Wasif Iqbal
@wazzymandias.eth
ah rocksdb, my old friend Such a pain to optimize but I guess if it already has NodeJS bindings I can see why y'all went for it
1 reply
0 recast
0 reaction
Varun Srinivasan
@v
where / what did you use rocksdb for?
1 reply
0 recast
0 reaction
Wasif Iqbal
@wazzymandias.eth
Private eth-compatible L1 that tried to put complex TradFi transactions on chain LevelDB wasn't performant enough so we swapped it out for RocksDB as backing database for state trie LSM based database compaction cycles can be a pain but to be fair that only becomes a problem at a certain scale & tx complexity
1 reply
0 recast
1 reaction
Royal
@royalaid.eth
Did Rocks hold up or did it take a ton of work to optimize?
1 reply
0 recast
0 reaction