Explorar o código

Add Cache intro section

Donne Martin %!s(int64=8) %!d(string=hai) anos
pai
achega
0d0814fa58
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      README.md

+ 12 - 0
README.md

@@ -1206,3 +1206,15 @@ Sample data well-suited for NoSQL:
 
 * [Scaling up to your first 10 million users](https://www.youtube.com/watch?v=vg5onp8TU6Q)
 * [SQL vs NoSQL differences](https://www.sitepoint.com/sql-vs-nosql-differences/)
+
+## Cache
+
+<p align="center">
+  <img src="http://i.imgur.com/Q6z24La.png">
+  <br/>
+  <i><a href=http://horicky.blogspot.com/2010/10/scalable-system-design-patterns.html>Source: Scalable system design patterns</a></i>
+</p>
+
+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.
+
+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.