7

Bitcoin relies on Proof of Work (hashing) to control the writing to a central repository (the blockchain). It also relies on a set of rules for these updates, and defines what happens if a conflict is found (longest chain wins)

Using that as an example for my question:

  • What are some architectural examples of different distributed lock and/or update mechanisms suitable for P2P networks? (I'm looking for descriptions of software design suitable to this project, not software products)

  • What key logic or rules are fundamental to that decentralized "database"?

5
  • Paxos? Commented Jul 18, 2013 at 4:59
  • Also Eventual consistency. Commented Jul 21, 2013 at 8:10
  • Can you focus this question a bit? As it stands, it sounds like a survey/polling question. The second part seems answerable as "What characteristics make such a database possible?" Commented Jul 23, 2013 at 1:44
  • @WorldEngineer Edited. Commented Jul 23, 2013 at 11:47
  • A similar question has already been asked. en.wikipedia.org/wiki/Distributed_transaction offers a few ideas, also emphasizing that "two phase commit" is the most common solution to overcome such problems. Check out this question to get the complete answer. programmers.stackexchange.com/questions/186980/… Commented Jul 26, 2013 at 9:30

1 Answer 1

1
+150

Bitcoin, Bittorrent, TOR, and a lot of Amazon's infrastructure (the decentralized bits) all run using something called Distributed Hash Tables.

Honestly, I don't understand it well enough to explain it well enough. Steve Gibson did a pretty good summary of it a while back if you have 30 minutes to listen.

Link.

2
  • 1
    What aspects of Amazon is using this? Which products? (is this internal to Amazon or for public purchase/rental)? Commented Jul 26, 2013 at 18:37
  • Amazon has it's own proprietary noSQL database built on distrubed hash tables called Dynamo. It lets them always have up to date information, and in means that there is they can take the nodes up and down without it being hugely disruptive. And yes Dynamo is available to the public though it is proprietary. I don't know what other Amazon Technology would use it. I would guess S3 uses it also. Commented Jul 26, 2013 at 19:20

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.