Redis 4 magic weapon, will learn middleware 2019

Redis 4 magic weapon, will learn middleware 2019
What Redis that?

全称:REmote DIctionary Server

Redis is a key-value memory in the form of database NoSQL, written by ANSI C, BSD protocol compliance, support network, also based on the persistent log memory type, Key-Value database, and provides multilingual API.

Redis biggest feature is that it will all data in memory, so the speed of read and write performance is very good. Of course, it also supports the data in memory in the form of snapshots and log persistence to the hard disk, so that data is not lost even when the power outage, machine malfunctions and other abnormal conditions, Redis restore snapshot data from the hard disk into memory in.

Official website: https://redis.io/

Chinese: Http://Www.Redis.Cn/

Github:https://github.com/antirez/redis

Redis What are the advantages?

1, high-performance, fast

Redis command very fast, read and write performance can be achieved given the official 10W / sec. Why so fast? There are several factors:

Data stored in memory, connected directly to the memory.
By opposing the bottom of the C language, the operating system from the closer.
Implementation source code is superb, just tens of thousands of lines of code, simple and stable.
Use a single-threaded model, no competition multithreading, locks and other issues.
2, rich data structures

Redis and other in-memory database is different, Redis has a wealth of data types, such as strings, hashes, lists, sets, and so ordered set. It is precisely because Redis rich data types, which can use all the scenes very much.

3, feature-rich

In addition to supporting the rich data structures, but also supports the following advanced features.

Support key expiration functionality can be used to achieve timing cache.
Support publish / subscribe functionality, there can be realized the message queue.
Support transactional capabilities, you can ensure transactional multiple commands.
Support for pipeline capabilities to batch processing commands.
Support for Lua scripting capabilities.
Support cluster fragmentation and data replication.
Support hard disk memory data persistence function.
4, rich client

Official website Index: http://www.redis.cn/clients.html

The client list given in the official website can be seen from a variety of languages ​​can access to a variety of Redis, including access to all the major development languages.

The company is currently using Redis is very large, there are many domestic and foreign companies with a heavyweight. So now learning Redis is a general trend, learn Redis can increase competition means a strong favorable for their work in the future to make a living in.

Guess you like

Origin blog.51cto.com/14207399/2437494
Recommended