From the perspective of development and operation and maintenance, the Redis practical experience is summarized, and the underlying implementation is analyzed in a simple way, including the actual cases and application skills of large-scale cluster development and operation and maintenance.
preface
Redis, as a NoSQL database based on key and value pairs, has high performance, rich data structure, persistence, high availability, distribution and other characteristics, while Redis itself is very stable, has been widely recognized and used in the industry. Mastering Redis has gradually become one of the necessary skills for development and operations personnel.
Book focus on all aspects of the Redis development operations, especially for development and operations of how to improve efficiency, reduce the possible problems in detail analysis, but the book is not only to introduce how to solve these problems, but through the Redis important principle analysis, help develop operations staff to find problems, and to understand the principle behind, So that the delivery and maintenance personnel not only know it, but also know why.
Contents display
You must read the content before you see it!
Partners who need to obtain the document can directly forward + follow ** click here to obtain the document collection method **
Content and Chapters:
Chapter 1 introduces Redis for the first time, leading readers to enter the world of Redis and understand its past and present life, numerous features, application scenarios, installation and configuration, and simple use. Finally, it explains the important versions in the development process of Redis, so that readers can have a comprehensive understanding of Redis.
Chapter 2 understanding and use of API comprehensively introduces the data model, common commands and typical application scenarios of five data structures provided by Redis: string, Hash, list, set and zset. And each section provides possible pitfalls and tricks to be aware of during the Redis development process. At the same time, this chapter will also make a comprehensive introduction to Redis single thread processing mechanism, key value management, through the understanding of these principles, readers can choose the appropriate data structure and command development in the appropriate application scenarios, effectively improve the efficiency of the program, reduce the possible problems and hidden dangers.
Chapter 3, In addition to 5 kinds of data structures, Redis also provides additional functions such as slow query, Redis Shell, Pipeline, Lua script, Bitmaps, HyperLogLog, publish and subscribe, GEO and so on. With the help of these functions, Redis application scenarios are richer.
Chapter 4 the client, this chapter focuses on Redis client development, this paper introduces the Redis client communication protocol, detailed interpretation of the use of Java client Jedis skills, at the same time through from the perspective of principle of analysis in the development and operations, the client’s monitoring and management skills, common issues in client development and case is given.
Chapter 5 Persistence: The Redis persistence function effectively avoids data loss caused by process exit. This chapter first introduces RDB and AOF persistence configuration and operation process, then locate and optimize common persistence problems, and finally optimize Redis single machine multi-instance deployment scenarios.
Chapter 6 Replication. To solve a single point of problem in distributed systems, multiple copies of data are often deployed to other machines for failover and load balancing needs, as is Redis. It provides us with replication, which implements multiple Redis copies of the same data. Replication is the foundation of highly available Redis, and both sentinels and clusters in later sections are highly available on replication.
** Chapter 7 Nightmare of Redis :** blocks. Redis is a typical single-threaded architecture where all read and write operations are done in one main thread. This thread becomes its lifeline when Redis is used in high-concurrency scenarios. Blocking even for a short period of time is a nightmare for our application. The scenarios that lead to blocking problems are roughly divided into internal and external causes, which will be analyzed in detail in this chapter
Chapter 8 Understanding memory, Redis all data in memory, how to efficiently use Redis memory becomes very important. Efficient use of Redis memory requires first understanding where Redis memory is consumed, how it is managed, and finally, how it is optimized. With this knowledge, we believe that readers will be able to store more data with less memory and thus reduce costs.
Chapter 9 Sentinel, Redis Sentinel officially offers Redis Sentinel since version 2.8, which effectively addresses several issues of failover in master-slave replication mode and provides Redis with high availability. In this chapter, related concepts, installation, deployment, configuration, command usage, principle analysis of Redis Sentinel are analyzed step by step. Finally, some problems in Redis Sentinel operation and maintenance are analyzed.
Chapter 10 Cluster, is the highlight of the book, RedisCluster is Redis distributed solution provided by Redis3, effectively solve the Redis distributed requirements, understanding the application of RedisCluster will greatly liberate our demand for distributed Redis, It’s also a great case study for distributed storage. This chapter will analyze and explain data distribution, cluster building, node communication, request routing, cluster scaling, failover and other aspects of RedisCluster.
Chapter 11 Cache Design, cache can effectively speed up the application read and write speed, and reduce the back-end load, for developers to daily application development is crucial, but the inclusion of cache into the application architecture will also bring some problems, this chapter will introduce the problems encountered in the use and design of cache. Specifically, the benefits and costs of cache, cache update strategy, cache granularity control, penetration problem optimization, bottomless problem optimization, avalanche problem optimization, hot key optimization.
Chapter 12 introduces the “pitfalls” of Redis development and maintenance, including :Linux configuration optimization, flush misoperation data recovery, how to make Redis secure, bigkey issues, hot key issues.
Chapter 13 CacheCloud, an open source Redis operation and maintenance tool of the author’s team, is introduced. CacheCloud effectively solves some problems in Redis monitoring, operation and maintenance. This chapter will introduce CacheCloud in terms of rapid deployment, machine deployment, application access, user functions, and operation and maintenance functions. With the help of CacheCloud, you can better monitor and operate Redis.
Chapter 14 Redis configuration statistics Dictionary will make a comprehensive review of Redis system status information and all configurations. It is hoped that this chapter can become a Redis configuration statistics dictionary to assist you in analyzing and solving problems encountered in daily development, operation and maintenance.
How do I get it?
Click here to get the document collection method **