Skip to content

Commit 0d0814f

Browse files
committed
Add Cache intro section
1 parent e32821d commit 0d0814f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,3 +1206,15 @@ Sample data well-suited for NoSQL:
12061206

12071207
* [Scaling up to your first 10 million users](https://www.youtube.com/watch?v=vg5onp8TU6Q)
12081208
* [SQL vs NoSQL differences](https://www.sitepoint.com/sql-vs-nosql-differences/)
1209+
1210+
## Cache
1211+
1212+
<p align="center">
1213+
<img src="http://i.imgur.com/Q6z24La.png">
1214+
<br/>
1215+
<i><a href=http://horicky.blogspot.com/2010/10/scalable-system-design-patterns.html>Source: Scalable system design patterns</a></i>
1216+
</p>
1217+
1218+
Caching improves page load times and can reduce the load on your servers and databases. In this model, the dispatcher will first lookup if the request has been made before and try to find the previous result to return, in order to save the actual execution.
1219+
1220+
Databases often benefit from a uniform distribution of reads and writes across its partitions. Popular items can skew the distribution, causing bottlenecks. Putting a cache in front of a database can help absorb uneven loads and spikes in traffic.

0 commit comments

Comments
 (0)