Preface -NoSQL
For the database, there will be frequent queries, we can put to frequent queries and fixed data extracted into the cache,
Separate read and write
the write data into the main database, the search data to read from the library.
Today's database
understanding of the Redis
KV + Cache + Persistence
NoSQL four classification comparison:
in principle distributed databases CAP + BASE CAP
CAP only three elections and two
traditional databases, such as MySQL, etc. CA is
distributed P has been selected , C focuses on accurate data, A focus on safety.
For example, two-eleven high concurrency, the website can give accurate data views, such as the number of points of praise. But also to keep the site secure.
Redis role is to help MySQL, Oracle and other database decrease the burden.
BASE concept
in exchange for consistency with a strong high-availability
distributed and cluster concept