Redis Notes 1 (NoSQL)

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.
Here Insert Picture Description
Today's database
Here Insert Picture Description
understanding of the Redis
KV + Cache + Persistence
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
NoSQL four classification comparison:
Here Insert Picture Description
in principle distributed databases CAP + BASE CAP
Here Insert Picture Description
CAP only three elections and two
Here Insert Picture Description
Here Insert Picture Description
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.
Here Insert Picture Description
BASE concept
in exchange for consistency with a strong high-availability
Here Insert Picture Description
distributed and cluster concept
Here Insert Picture Description

Published 25 original articles · won praise 14 · views 807

Guess you like

Origin blog.csdn.net/weixin_44860598/article/details/105251187