12031
Sanjay

@sanjay #12031

@farcaster protocol dev
6223 Follower 214 Following
Probably the most challenging and fun project I’ve ever worked on.

Incredible work by @dynemyte @suurkivi and @cassie.

Special shoutout to the Informal Systems team for building Malachite, a rock solid rust Tendermint library which powers snapchain.
Loading...
We've been so focused on snapchain, I forgot to do the Hub protocol release for Nov 27. Just released Hubble 1.17. Please upgrade before current version expires at Dec 11 midnight UTC.

Apologies for the short notice!
Considering buying a house, and came across this very cool and very legal covenant (from 1946) for the land in the disclosures. Can't say I wasn't tempted to buy just to stick it to them.
https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/af62d684-97de-4088-97e4-48feed162700/original
I was originally leaning towards account ordering. But happy with where we ended up. The biggest issue with blockchains is managing block state growth. Thanks to @cassie for inspiring the solution on how to handle this in snapchains.

Also, special thanks to @vrypan.eth for the App Ordering idea.
Loading...
If you enjoy coming up with novel distributed systems algorithms, we have just the challenge for you.
Loading...
/Farcaster
Please upgrade Hubble to 1.14.4 which implements storage changes defined in https://github.com/farcasterxyz/protocol/discussions/191

We'll min version on Monday at the latest so all hubs will be ready for Aug 28 when storage units were originally scheduled to expire.

If you are manually calculating storage, you'll need to update your logic. You may find the new helper functions implemented in the hub-nodejs package useful https://github.com/farcasterxyz/hub-monorepo/blob/main/packages/core/src/limits.ts
/hubs
Since this day, we're at 50x the message count, 180x the peer count, ~40x the db size. Perf metrics are harder to compare since it was during an incident but currently p95 merge latency is ~30ms and p95 gossip delay is <1s (vs 2000ms and ~2.5hrs during the incident)
https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/83300578-f174-4570-0720-744ecb48c500/original
Loading...
Hub message disruption today was caused by our hub losing gossip connectivity to all other hubs (unclear why exactly due to a logging bug). It was unable to regain connection due a bad interaction with a libp2p upgrade.

Released 1.14.2 with a fix.
/hubs
Hubble 1.14 is out. It includes a bunch of fixes around follows (consistency issues and large compaction events breaking event streams).

If you are using shuttle, make sure you’re on the latest version before upgrading hubs, there’s a breaking api change for events.
/hubs
Message processing was broken today because some events exceeded grpc client default size. If you're using shuttle, please upgrade to 0.4.1 to get the fix. If you are constructing hub clients manually and listening to events, make sure to pass in the following param
https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/69039d22-63ed-4d00-85a4-babda3ef2900/original
/hubs
This one was tricky to track down. There were a lot of dead ends. Special thanks to

@wazzymandias.eth for basically fixing it last night and not telling the rest of us 😂

@cassie and @sds for some deep libp2p and tcp tuning magic, which we thankfully didn't need.

And finally to my good friend Claude, who pointed me to the `node --prof` command which is able to profile worker threads, would've been much more difficult to narrow down the root cause without it.
Loading...
Released Hubble 1.13.2 with a crash fix (thanks @cassie). Please upgrade for improved stability.

We're also planning to min version to 1.13.1 early next week so all hubs support long casts. We're noticing some sync issues due to older hubs that don't support it.
/hubs
Reminder that the replicator is deprecated by shuttle. We’re going to remove the replicator from the hub codebase by end of next week to avoid any confusion. If you’re still using the replicator, please migrate to the shuttle package.

Let me know if you have any questions around migration.
/Farcaster Devs
We’re seeing message processing delays again. The team is working on scaling our systems to be able to handle it.
Loading...
@ted @gregan the RWA thesis is finally playing out. When does the goldfinch goat pool open? There's clear investor demand https://x.com/NeerajKA/status/1775881228656181312?s=20
Loading...

x.com

x.com
/DeFi
Please reach out if you’re interested in using this, or have any feedback
Loading...
We're planning to min version the hubs to 1.11.2 later today to improve network health. This version includes the fix to have all hubs use snapshots to catch up if they are too far behind. If you're on an older version, please run `./hubble.sh upgrade` to get up to date.

https://warpcast.com/sanjay/0x4a7d7839
Loading...
/hubs
We've released 1.11.1. @wazzymandias.eth made it so that hubs will now automatically use snapshot sync to catch up if they are too many messages behind.

Note that this will reset the db, if you're running a replicator you can disable this to be safe, by setting `CATCHUP_SYNC_WITH_SNAPSHOT=false` in your .env file
/hubs
This is a very cool talk. Interestingly, it's almost exactly the same algorithm the hubs use right now. Prolly trees are more efficient since it collapses the number of levels required (we use timestamp prefix tries, so it always at least 10 levels), but apart from that it's exactly the same.
Loading...
Our existing sync architecture for Hubs is running into scaling issues. Been thinking about a new design that can scale to billions of messages and millions of fids. If you enjoy complex distributed systems problems, I would appreciate feedback

https://warpcast.notion.site/Sync-V2-a9c0fd81d7b245a0b3fbd51e6007909f
Just min versioned to 1.10.5. This should improve gossip performance for the whole network. Please upgrade via “./hubble.sh upgrade” if you haven’t already.

Thank you @wazzymandias.eth for the fix.
Loading...
/hubs
Hubble 1.10 is out, please upgrade. Note that this version requires a minimum of 16GB RAM of ram to ensure Hubs will be capable of keeping up with traffic. Hubs with less than 16GB will fail the startup check.
/hubs
1.9.8 released with more performance improvements. Please upgrade. Also recommend switching your instance to 4 vcpus and 16GB of ram.
/hubs
I'd love to have the ability to vote for snapshot.org proposals through frames. If anyone from the snapshot team is interested, I would be happy to help build this.

It would greatly improve participation. Start with showing proposals in frame and then delegate votes to your fid eth address and vote with a FrameAction.
/Ethereum