Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Redis Stack for Application Modernization

You're reading from  Redis Stack for Application Modernization

Product type Book
Published in Dec 2023
Publisher Packt
ISBN-13 9781837638185
Pages 336 pages
Edition 1st Edition
Languages
Authors (2):
Luigi Fugaro Luigi Fugaro
Profile icon Luigi Fugaro
Mirko Ortensi Mirko Ortensi
Profile icon Mirko Ortensi
View More author details

Table of Contents (18) Chapters

Preface 1. Part 1: Introduction to Redis Stack
2. Chapter 1: Introducing Redis Stack 3. Chapter 2: Developing Modern Use Cases with Redis Stack 4. Chapter 3: Getting Started with Redis Stack 5. Chapter 4: Setting Up Client Libraries 6. Part 2: Data Modeling
7. Chapter 5: Redis Stack as a Document Store 8. Chapter 6: Redis Stack as a Vector Database 9. Chapter 7: Redis Stack as a Time Series Database 10. Chapter 8: Understanding Probabilistic Data Structures 11. Part 3: From Development to Production
12. Chapter 9: The Programmability of Redis Stack 13. Chapter 10: RedisInsight – the Data Management GUI 14. Chapter 11: Using Redis Stack as a Primary Database 15. Chapter 12: Managing Development and Production Environments 16. Index 17. Other Books You May Enjoy

The open source project

The success of a technical project is always measurable in terms of the innovation of the proposal, simplicity of use, exhaustive documentation, high performance, low footprint, and stability, among other aspects. However, and this is true for many things, at the end of the day what matters is the capacity to resolve a problem and the impact of the solution. Organizations that decide to add new technology to their stack face several challenges to understand, prototype, validate, and set up a plan to deploy test environments together with a release strategy, a maintenance plan, and, finally, a plan to develop competence. Success stories require careful planning. From these many perspectives, Redis is considered first-in-class, and in this book, we will expose many of the reasons that made Redis the de-facto standard among the in-memory data stores in the world. But even before digging into the features of Redis Stack, Redis, as an open source project, has undoubtedly added value to many businesses:

  • A variety of options exist to get it running close to the application. It is available as a managed service in every public cloud provider, it can be installed from the source code or as a binary file, and Docker images are available for all the versions and flavors.
  • It has good documentation and a command reference, together with examples (from the https://redis.io/ website).
  • It is straightforward to set up and test. The source code is self-contained and does not depend on external libraries.
  • Client libraries for the most popular programming languages are available and supported (Java, JavaScript, Python, Go, and C#/.NET).
  • The well-known and permissive BSD license grants the freedom to use, modify, and distribute Redis, among other advantages. Users can test and run Redis in production without any concerns.

These reasons, together with the fact that it’s very easy to learn Redis, make it an attractive option to set up and use. On a computer configured to build C projects, pulling the source code from the GitHub repository, compiling it, and running the server can be done in less than a minute:

git clone https://github.com/redis/redis.git
cd redis/
make
./src/redis-server &
./src/redis-cli PING
PONG

The open source project delivers the core Redis server plus additional utilities, such as these:

  • redis-cli, the command-line interface to administer the server and manage the data. This utility assists also in configuring scalable deployments with Redis Cluster and high availability with replication and Sentinel. Among other features, it includes auto-completion, online help for single commands (for example, HELP HSET), or by group of commands (for example, HELP @hash, to learn about the commands that can be used with the Hash data structure). Just type HELP to understand how to make use of the online help.
  • redis-benchmark, a simple benchmarking utility to perform batches of tests for different data structures. Useful to evaluate how well the server performs on determined hardware.
  • redis-sentinel, the agent that automates the management of replicated topologies and provides clients with a discovery service.
  • create-cluster, a utility useful to set up a Redis Cluster environment for testing.
  • redis-check-rdb and redis-check-aof, utilities to health check AOF and RDB persistence files.

Now that we have reviewed the basic principles behind Redis and its utilities, we are ready to dive into the world of data modeling. This journey will take us from relational databases to Redis core data structures, and we will see how the multi-model capabilities of Redis Stack simplify many data modeling problems.

You have been reading a chapter from
Redis Stack for Application Modernization
Published in: Dec 2023 Publisher: Packt ISBN-13: 9781837638185
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}