万本电子书0元读

万本电子书0元读

顶部广告

Learning Redis电子书

售       价:¥

21人正在读 | 0人评论 9.8

作       者:Vinoo Das

出  版  社:Packt Publishing

出版时间:2015-06-26

字       数:318.4万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

Learning Redis

Table of Contents

Learning Redis

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Introduction to NoSQL

An Internet-enabled world

The NoSQL primer

Graph-oriented NoSQL

Document-oriented NoSQL

Salient features of MongoDB and CouchDB

Column-oriented NoSQL

Salient features of HBase and Cassandra

Key value-oriented NoSQL

How does Redis fare in some of the nonfunctional requirements as a key-value datastore?

Use cases of NoSQL

Summary

2. Getting Started with Redis

Installing Redis on Windows

Installing Redis on Mac OS

Introduction to redis.conf

Hello World in Redis

Hello World using redis-cli

Hello World using Java

Installing Jedis and creating an environment

Writing the program

Shutting down the server

Loading a test Hello World program in Redis

Summary

3. Data Structures and Communicating Protocol in Redis

Data structures

Data types in Redis

The string data type

The BitSet or bitmap data type

Use case scenario

The Hashes data type

Use case scenario

The Lists data type

Use case scenario

The Sets data type

Use case scenario

The Sorted Sets data type

Use case scenario

Communication protocol – RESP

Summary

4. Functions in the Redis Server

Real-time messaging (PUB/SUB)

Pipelines in Redis

Transactions in Redis

Pipeline versus transaction

Pipeline and transaction

Scripting in Redis

Brief introduction on Lua

Use case – reliable messaging

Connection management

Redis authentication

Redis SELECT

Redis ECHO and PING

Summary

5. Handling Data in Redis

Classifying data

Master-slave data replication

Setting master and slave nodes

Performance pattern – high reads

Performance pattern – high writes

Persistence handling in Redis

Persisting via the RDB option

Configuring Redis for RDB persistence

Use case for using RDB persistence

Persisting via the AOF option

Configuring Redis for AOF persistence

Use case for using AOF persistence

Dataset handling commands in Redis

Summary

6. Redis in Web Applications

Simple e-commerce – a Redis backed e-commerce site

Session management

Catalogue management

Online analytics

Implementation – simple e-commerce

ProductApp

UserApp

RedisDBManager

ProductDBManager

AnalyticsDBManager

ShoppingCartDBManager

UserCartDBManager

Summary

7. Redis in Business Applications

Configuration management

Gossip server

Node

Layered design

Shell

Listeners

Listener manager

The data handler layer

JedisUtil.java

Client node commands

The register command

Implementation of RegisterCommand

Implementation of RegisterCommandHandler

The activate command

Implementation of ActivateCommand

Implementation of ActivateCommandHandler

The set command

Implementation of SetCommand

Implementation of SetCommandHandler

The get command

Implementation of GetCommand

Implementation of GetCommandHandler

The del command

Implementation of DeleteCommand

Implementation of DeleteCommandHandler

The status command

Implementation of StatusCommand

Implementation of StatusCommandHandler

The passivate command

Implementation of PassivateCommand

Implementation of PassivateCommandHandler

The reactivate command

Implementation of ReactivateCommand

Implementation of ReactivateCommandHandler

The archive command

Implementation of ArchiveCommand

Implementation of ArchiveCommandHandler

The sync command

Implementation of SyncCommand

Implementation of SyncCommandHandler

The reconnect command

Implementation of ReconnectCommand

Implementation of ReconnectCommandHandler

Master node commands

The start command

Implementation of StartMasterCommand

The stop command

Implementation of StopMasterCommand

The status command

Implementation of StatusCommand

Implementation of StatusCommandHandler

The get command

Implementation of GetNodeDataCommand

Implementation of GetNodeDataCommandHandler

The msg command

Implementation of MessageCommand

Implementation of MessageCommandHandler

The kill command

Implementation of KillNodeCommand

Implementation of KillNodeCommandHandler

The clone command

Implementation of CloneNodeCommand

Implementation of CloneNodeCommandHandler

Redis configuration – data management

The RDB option

The AOF option

VM overcommit memory

Summary

8. Clustering

Clusters

Cluster pattern – master-master

Performance

Availability

Scalability

Manageability

Security

Drawbacks of this pattern

Sharding

Observations

Cluster pattern – master-slave

Performance

Availability

Scalability

Manageability

Security

Drawbacks of this pattern

Configuring Redis Sentinel

Summary

9. Maintaining Redis

Maintaining ephemeral data

Maintaining nonephemeral data

Redis 2.4

Redis 2.6 to 2.8

Dump and restore

Snapshotting

Redis 3.0

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部