Skip to content

Commit

Permalink
Style.
Browse files Browse the repository at this point in the history
  • Loading branch information
fpereiro committed Jan 27, 2020
1 parent 5ac96b7 commit 0cb4fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -403,7 +403,7 @@ M H * * D /path/to/refresh.sh

## DB partitioning

Splitting the data in a database into parts is called [*sharding*](https://en.wikipedia.org/wiki/Shard_(database_architecture)). That name gives me chills; a *shard* is [defined](https://en.wiktionary.org/wiki/shard) as *A piece of broken glass or pottery, especially one found in an archaeological dig* and in my mind's eye evokes the sight of broken glass, which is pretty much the last thing I want to see when talking about the main repository of information of a large application with potentially thousands or millions of users. For this reason, I will use the term *partitioning* (which usually has a FS connotation); and instead of *shards*, I will speak of *nodes*. If you're offended about this, you very likely know way more about distributed databases and should not pay attention to what I'm saying.
Splitting the data in a database into parts is called [*sharding*](https://en.wikipedia.org/wiki/Shard_(database_architecture)). That name gives me chills; a *shard* is [defined](https://en.wiktionary.org/wiki/shard) as *A piece of broken glass or pottery, especially one found in an archaeological dig* and in my mind's eye evokes the sight of broken glass, which is pretty much the last thing I want to see when talking about the main repository of information of a large application with potentially thousands or millions of users. For this reason, I will use the term *partitioning* (which usually has a FS connotation); and instead of *shards*, I will speak of *nodes*. If you're offended about this, you very likely know way more about distributed databases and should not pay attention to what I'm saying anyway.

Notice that partitioning is unrelated to whether you have read-only replicas of a database. For example, I wouldn't consider an architecture with a single redis master and a single redis replica attached to it to be an architecture with a partitioned database. If you had two redis master databases which both can process writes, then you'd be looking at a partitioned architecture.

Expand Down

0 comments on commit 0cb4fc8

Please sign in to comment.