What is a pub?
Hi, I'm mix, and I'm one of the people developing on scuttlebutt, and also trying to figure out how to make some of the concepts we're building with more accessible
A hand wavey story
Pubs are like public houses (e.g. your local bars, or cafes) - places with a gossipy bar-keep or barrista where you can drop by and share news. If there are enough pubs, and everyone swings by them occassionally, then information gets around fairly reliably, and we don't need a central source of truth / knowledge.
Why pubs are currently needed
While scuttlebutt is p2p, there isn't an easy way for peers to locate other peers, or to know when other peers are online.
(It might be possible to use an introducer, but it's also been important for us to not subscribe to any system which centralises any special role. This is why we have avoided using DHT)
We decided to put some peers online so that they were :
- in a know location the whole time (at a static IP address)
- they were always on (unlike my laptop)
If I get my pub to follow me and my friends, then it's "interested" in replicating any news it hears from them.
If we know where this pub is (and perhaps follow it), we can check in with it and ask for any gossip it might have heard of.
This is what an invite set up - a 2-way follow (the pub follows you and you follow the pub)