Learning Redis

Learning Redis

Language: English

Pages: 412

ISBN: 1783980125

Format: PDF / Kindle (mobi) / ePub

Learning Redis

Language: English

Pages: 412

ISBN: 1783980125

Format: PDF / Kindle (mobi) / ePub


Design efficient web and business solutions with Redis

About This Book

  • Model and design databases effectively in Redis
  • Learn about sharding, indexing, and migrating strategies in Redis
  • A simple step-by-step tutorial explaining the main concepts of Redis through practical examples

Who This Book Is For

This book is for SQL developers who want to learn about Redis, the key value database for scalability and performance. Prior understanding of a programming language is essential; however no knowledge of NoSQL is required.

What You Will Learn

  • Familiarise yourself with NoSQL and install Redis
  • Build solutions and enhance your web applications in Redis
  • Understand the persistent mechanism for better scalability
  • Configure and tune the server to improve performance
  • Identify bottlenecks and how to handle fault management in Redis
  • Learn about backups and recovery strategies for the Redis environment
  • Discover the commands and functions of Redis

In Detail

This book will introduce Redis and help you understand its various facets.

Starting with an introduction to NoSQL, you will learn how to install Redis and how to classify and work with data structures. By working with real world scenarios pertaining to using Redis, you will discover sharding and indexing techniques, along with how to improve scalability and performance through persistent strategies and data migration techniques. With the help of multiple examples, you will learn to design web and business applications. You will also learn how to configure Redis for setting up clusters and tuning it for performance.

At the end of this book, you will find essential tips on backup and recovery strategies for the Redis environment.

Mastering JIRA

Foundation ActionScript 3.0 Image Effects

C++ Neural Networks and Fuzzy Logic

Elixir in Action

A Programmer's Introduction to C#

Effective MySQL Replication Techniques in Depth

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

chapters. The Java client API chosen to demonstrate the examples in this book is Jedis. [ 28 ] Chapter 2 There are three steps to run the "Hello World" example in Java. They are explained in the sections that follow. Installing Jedis and creating an environment Jedis is Apache License 2.0 Java client for Redis. This client will be used for the samples demonstrated in this book. So, the most important thing to get for this client is that you need to make sure that you have a development

example of this type of commands: °° LTRIM: This command deletes the elements outside the range specified. Time-based performance for this command is O (N). Here N is the length of the list. °° RPOP: This command removes the last element. Time-based performance for this command is O (1). °° LREM: This command removes the element at the index point specified. Time-based performance for this command is O (N). Here N is the length of the list. [ 48 ] Chapter 3 °° LPOP: This command removes

where these data types can be used. Finally, we understood how Redis communicates with the clients and vice versa. In the next chapter, we will take our understanding a notch higher and make an attempt to understand Redis Server and the functionality that'll handle it. [ 68 ] Functions in the Redis Server In the previous chapters, we saw some features of Redis Server that make it a key-value NoSQL. We also saw that Redis, apart from storing vanilla key-values, also provides semantics to store

onMessage(String arg0, String arg1) { System.out.println("on message : " + arg0 + " value = } @Override public void onPMessage(String arg0, String arg1, String System.out.println("on pattern message : " + arg0 + " + arg1 + " message =" + arg2); } @Override public void onPSubscribe(String arg0, int arg1) { System.out.println("on pattern subscribe : " + arg0 + + arg1); } @Override public void onPUnsubscribe(String arg0, int arg1) { System.out.println("on pattern unsubscribe : " + arg0 " + arg1); }

includes state management, is taken care of by Zookeeper nodes. HBase clients interact directly with Region Servers to put and get data. Components such as Zookeeper (used to coordinate between the master and slave nodes), Name Node, and HBase master node do not participate directly in the exchange of data between the HBase client and Region Server nodes. [ 12 ] Chapter 1 HBASE node set up Cassandra is a datastore which belongs to the category of columnar-oriented datastores and also shows

Download sample

Download