Distributed Systems: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 27: Line 27:
Read replication is a strategy to scale a [[#Single_Master_Database|single master database]].
Read replication is a strategy to scale a [[#Single_Master_Database|single master database]].


The pattern involves a leader database and several follower databases. The leader database handles updates and is responsible to propagate the updates to the follower databases. The follower databases will be at time out of date with the leader, because it takes a non-zero time for the change to replicate. Also, since the updates for each follower happen independently, followers will be out of sync, for a short interval of time, with each other.
The pattern involves a leader database and several follower databases. The leader database handles updates and is responsible to propagate the updates to the follower databases. The follower databases will be at time out of date with the leader, because it takes a non-zero time for the change to replicate. Also, since the updates for each follower happen independently, followers will be out of sync, for a short interval of time, with each other. This behavior breaks the strong consistency guarantee of a non-distributed database.


Non-relational databases.
Non-relational databases.

Revision as of 00:46, 4 June 2019

External

Internal

Distributed System Definition

According to Andrew Tannenbaum, a distributed system is a collection of independent computers that appear to their users as one computer. Specifically, there are three specific characteristics any distributed system must have:

  • The computers operate concurrently
  • The computers fail independently. They will fail, sooner or later.
  • The computers do not share a global clock. All activities these computers perform are asynchronous with respect to the other components. This is a very important characteristics, as it imposes some essential limitations on what the distributed system can do.

As we scale and distribute the system, it seems as bad things start happening to us: distributed system are hard, and it is possible to get away without one, go for it. However, we distribute for well defined reasons, and distributing is in some cases the only way we can address the problems we have.

CAP Theorem

Distributed Storage

The non-distributed version of a relational database is called a "single master system".

Read Replication

Read replication is a strategy to scale a single master database.

The pattern involves a leader database and several follower databases. The leader database handles updates and is responsible to propagate the updates to the follower databases. The follower databases will be at time out of date with the leader, because it takes a non-zero time for the change to replicate. Also, since the updates for each follower happen independently, followers will be out of sync, for a short interval of time, with each other. This behavior breaks the strong consistency guarantee of a non-distributed database.

Non-relational databases.

Cassandra

Distributed file systems.

Distributed Computation

Hadoop

Spark

Storm

Distributed Synchronization

Network Time Protocol

Vector clocks

Consensus

The consensus refers to the problem of agreeing on what is true in a distributed environment.

Zookeeper

Paxos

Distributed Messaging

Kafka

To Schedule