search
HomeCommon ProblemWhat are the commonly used distributed caches?

What are the commonly used distributed caches?

Apr 10, 2019 pm 02:45 PM
Distributed cache

What are the commonly used distributed caches?

Distributed caching can handle large amounts of dynamic data, so it is more suitable for use in scenarios such as social networking sites in the Web 2.0 era that require user-generated content. After expanding from local cache to distributed cache, the focus has expanded from the difference in data transmission speed between CPU, memory, and cache to the difference in data transmission speed between business systems, databases, and distributed cache.

Commonly used distributed caches include Redis and Memcached.

1. Memcached

Memcached is a high-performance distributed memory object caching system used in dynamic web applications to reduce database load. Memcached increases the speed of dynamic, database-driven websites by caching data and objects in memory to reduce the number of database reads.

Features: Hash storage; full memory operation; simple text protocol for data communication; only character data operations; the cluster is controlled by the application and uses a consistent hash algorithm.

Restrictions: The data is stored in the memory. Once the machine is restarted, all data will be lost; only character data can be operated, and the data type is poor; it runs with root privileges, and Memcached itself does not have any permission management and authentication. Function and security are insufficient; the length of data that can be stored is limited, the maximum key length is 250 characters, and the stored data cannot exceed 1M.

2. Redis

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

Features:

The data types supported by Redis include: string, string, hash, set, sortedset, list; the way Redis implements persistence: regularly writes memory snapshots Disk; write log; Redis supports master-slave synchronization.

Restrictions: Single-core operation, performance will be reduced when storing big data; it is not a full-memory operation; master-slave replication is full replication, which imposes a certain burden on actual system operations.

The above is the detailed content of What are the commonly used distributed caches?. 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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.