You are previewing Instant Redis Optimization How-to.
O'Reilly logo
Instant Redis Optimization How-to

Book Description

Learn how to tune and optimize Redis for high performance

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.

  • Install, fine-tune, and add Redis to your application stack.

  • Perform bulk writes into Redis efficiently

  • Debug and troubleshoot Redis

In Detail

The database is the backbone of any application and Redis is a next generation NoSQL database which can provide ultra-fast performance if tuned and calibrated correctly. Instant Redis Optimization How-to will show you how to leverage Redis in your application for greater performance and scalability.

Instant Redis Optimization How-to will show you how to make the most of Redis. Using real-world examples of Redis as a caching and queuing service, you will learn how to install and calibrate Redis to optimize memory usage, read and write speed, as well as bulk writes and transactions. If you want to use Redis for its blazing fast capabilities, then this book is for you.

Instant Redis Optimization How-to shows you how to optimize and scale Redis with practical recipes on installation and calibration for performance and memory optimization as well as advanced features like PUB/SUB.

This book starts by providing clear instructions on how to install and fine-tune Redis to work efficiently in your application stack. You will also learn how to maintain persistence, how to optimize Redis to handle different data types, as well as memory usage optimization. You will then learn how to use bulk writes and transactions, as well as publish/subscribe features to get the most out of Redis.

Offering best practices and troubleshooting tips, this book will also show you how to manage and maintain performance. This book finishes by recommending the best client libraries for all major programming languages. By the end of this book you will know how to create blazing fast applications using Redis.

Table of Contents

  1. Instant Redis Optimization How-to
    1. Instant Redis Optimization How-to
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    7. 1. Instant Redis Optimization How-to
      1. Choosing your data store (Simple)
        1. Getting ready
          1. Why was Redis created?
          2. Who is using Redis?
        2. How to do it...
        3. There's more...
          1. How does Redis compare with the competition?
            1. Major differences
            2. Comparison with other data stores
      2. Installing Redis (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Setting up and testing
          2. Redis in Mac OS X
          3. Redis in Windows
      3. Configuring and tuning Redis (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Security settings
          2. Advanced configuration
      4. Implementing persistence in Redis (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Advantages of snapshotting
          2. Limitations of snapshotting
          3. What should we use?
      5. Detecting performance bottlenecks (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. CPU bottleneck
          2. Latency due to the application's design
      6. Performing high-volume writes (Advanced)
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Bulk data import
            1. Redis protocol
            2. How does the pipe mode work?
      7. Leveraging data types (Simple)
        1. How to do it...
        2. There's more...
          1. Strings
          2. Lists
          3. Sets
          4. Hashes
      8. Optimizing memory (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. CPU/memory tradeoffs
          2. Maximize hash usage
          3. Auto expiry
        4. There's more...
          1. Auto-expiring caching system
      9. Using transactions and Pub/Sub (Advanced)
        1. How to do it…
          1. Transactions
          2. Publish/Subscribe
        2. How it works...
        3. There's more...
          1. A Publish/Subscribe example
          2. Caveats in transaction
      10. Troubleshooting and monitoring (Intermediate)
        1. How to do it...
        2. There's more...
          1. Slow log
          2. Redis software watchdog
      11. Using languages and drivers (Simple)
        1. How to do it...
        2. There's more…
          1. Client Libraries