Home  >  Article  >  Database  >  What is redis used for?

What is redis used for?

(*-*)浩
(*-*)浩Original
2019-06-17 10:18:516803browse

Redis is an open source log-type Key-Value database written in ANSI C language, supports network, can be memory-based and persistent, and provides APIs in multiple languages.

Redis official also provides a project code called Retwis, which can be studied against the official code.

What is redis used for?

What is Redis used for? (Recommended learning: Redis video tutorial)

Generally speaking, Redis also exists in the form of a message queue and as an embedded List to meet real-time high concurrency. need. Usually in an e-commerce type data processing process, queues of related products, hot sales, and recommended sorting are usually stored in Redis, and the reading and updating of Redis lists by Storm are also included in the process.

Advantages of Redis

Extremely high performance – Redis can support more than 100K read and write frequencies per second.

Rich data types – Redis supports Strings, Lists, Hashes, Sets and Ordered Sets data type operations for binary cases.

Atomic - All operations of Redis are atomic, and Redis also supports atomic execution of several operations after they are fully merged.

Rich features – Redis also supports publish/subscribe, notifications, key expiration and other features.

The disadvantage of Redis

is that the database capacity is limited by physical memory and cannot be used for high-performance reading and writing of massive data. Therefore, Redis is mainly suitable for smaller scenarios. High-performance operations and calculations on small data volumes.

Summary: Redis is limited to specific scenarios, focuses on specific fields, and is quite fast. There is currently no alternative product.

For more Redis-related technical articles, please visit the Introduction to Using Redis Database Tutorial column to learn!

The above is the detailed content of What is redis used for?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn