Relational database storage - Azure SQL database - Sharding
4 important questions on Relational database storage - Azure SQL database - Sharding
What is sharding? Name all types sharding?
- Range strategy. The keys are sequential -composite- and each range is stored shared in a particular shard.
- Lookup strategy. All data of a key is stored in a specific shard.
- Hash strategy. The data is stored by calculating a hash of the key.
Sharding is a method of scaling out.
What is a range sharding strategy?
Advantage is that shards can be created by region or date range.
Disadvantage is that reconfiguring is hard and this strategy provides no load balancing ability.
What is a lookup sharding strategy?
Advantage is that physical data can be modified without modifying the application code.
Disadvantage is that it can impact performance, because the location of the shard mapping needs to be queried first.
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding
What is a hash sharding strategy?
Rebalancing hash shards is difficult.
The question on the page originate from the summary of the following study material:
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding