Build an atproto social graph: Mutuals
A hubble-sync data service tutorial
ubble-sync is a new sync library for atproto in rust, made for making the kinds of Big Indexing services that microcosm builds and runs, like constellation, lightrail, and Hubble.
(a lot of this tutorial still needs to be written! but you can jump in anyway! i'm around to fill in gaps, take feedback, and push patches to hubble-sync if you need! find me! -- @bad-example.com)
Step 0: Sync the atmosphere
And count followers. See:
/moots-tutorial/moots-0-counts at main · microcosm.blue/moots-tutorial
a fast social graph query with hubble-sync
Step 1: Compute mutuals!
See:
/moots-tutorial/moots-1-mutuals at main · microcosm.blue/moots-tutorial
a fast social graph query with hubble-sync
Step 2: Maintain a fast index
With optimistic concurrency control (OCC) to resolve conflicts in a shared kespace
See:
/moots-tutorial/moots-2-fast-reads at main · microcosm.blue/moots-tutorial
a fast social graph query with hubble-sync
Did you enjoy this article?
Recommend it — Standard Reader surfaces well-loved writing to more readers across the network.