Reader small image

You're reading from  Redis Stack for Application Modernization

Product typeBook
Published inDec 2023
PublisherPackt
ISBN-139781837638185
Edition1st Edition
Right arrow
Authors (2):
Luigi Fugaro
Luigi Fugaro
author image
Luigi Fugaro

Luigi Fugaro's first encounter with computers was in the early 80s when he was a kid. He started with a Commodore Vic-20, passing through a Sinclair, a Commodore 64, and an Atari ST 1040, where he spent days and nights giving breath mints to Otis. In 1998, he started his career as a webmaster doing HTML, JavaScript, Applets, and some graphics with Paint Shop Pro. He then switched to Delphi, Visual Basic, and then started working on Java projects. He has been developing all kinds of web applications, dealing with backend and frontend frameworks. In 2012, he started working for Red Hat and is now an architect in the EMEA Middleware team. He has authored WildFly Cookbook and Mastering JBoss Enterprise Application Platform 7 by Packt Publishing.
Read more about Luigi Fugaro

Mirko Ortensi
Mirko Ortensi
author image
Mirko Ortensi

Mirko Ortensi earned a degree in Electronic Engineering and a Master's degree in Software Engineering. Mirko's career has spanned several roles from Software Engineering to Customer Support, particularly centered around distributed database systems. As a Senior Technical Enablement Architect at Redis, Mirko shares technical knowledge about Redis's products and services.
Read more about Mirko Ortensi

View More author details
Right arrow

Managing Development and Production Environments

Until now, you’ve ventured on a comprehensive exploration of Redis Stack. You’ve explored its capabilities as a document store, understood its potential as a vector database, and delved into its prowess as a time-series database. You’ve stepped into the fascinating world of probabilistic data structures and uncovered the deep programmability features of Redis Stack. You’ve been introduced to RedisInsight, a powerful data management GUI, and weighed the advantages of using Redis Stack as a primary database.

As you transition to this final chapter, it’s essential to build upon what you’ve learned and dive deeper into the architectural nuances of Redis Stack. When discussing architecture, you must consider the target environments, such as production, development, testing, and validation environments. Each of these has unique needs and characteristics.

The primary distinctions between these...

Technical requirements

For the practical demonstrations outlined in this chapter, it is best to have Redis Stack Server 7.2 or a later version installed on your local development environment. Utilizing Redis Cloud might not be appropriate for these exercises, the reason being that Redis Cloud, as a fully managed service, abstracts away many architectural complexities that one would encounter with a local setup. This chapter specifically addresses the manual configuration of Redis Stack to achieve HA and scalability—features that are inherently and seamlessly managed in Redis Cloud. Thus, a local installation of Redis Stack is essential in your local development environment for the purposes of this guide.

Redis Stack as a development environment

When working with Redis Stack, achieving HA, scalability, and security might seem like a steep hill to climb. There’s a lot to set up and monitor; however, don’t be daunted! Even if you’re just getting your feet wet, having a roadmap can be invaluable. That’s why I’ve compiled a mini-guide for you. While it won’t magically turn Redis Stack into an enterprise-grade solution, it will give you a solid foundation of general guidelines and recommendations to move in the right direction. Consider it your compass in the sometimes complex world of Redis Stack optimization.

HA

Let’s start with HA. In Redis Stack, HA is achieved by increasing the number of Redis Stack instances configured as replicas. These replicas listen to and follow a primary instance. To set this up, specify the IP address and port of the primary instance, and all replicas will receive updates.

Typical configuration parameters...

Preparing for production with Redis Enterprise

As we’ve observed, Redis Stack is ideal for local development environments. However, when the application needs to intersect with architectural and infrastructural requirements, it’s prudent to adopt an enterprise-grade Redis solution—specifically, Redis Enterprise. From an application perspective, the libraries and frameworks supported by Redis remain consistent. But what are the distinctions between Redis Stack and Redis Enterprise?

The differences are manifold, some being quite apparent, while others are subtler. They range from TCO, multitenancy support, HA, scalability, security, and performance to monitoring.

In the following sections, we will delve into these aspects to comprehend the added value that Redis Enterprise brings to such contexts. Before doing so, let us first explore Redis Enterprise from an architectural standpoint.

Redis Enterprise architecture

Redis Enterprise is built on a shared...

Redis Cloud – an enterprise-ready Redis DBaaS

Redis Cloud serves as a fully managed cloud service designed to optimize the performance, scalability, and reliability of Redis deployments, abstracting the complexities of infrastructure management and ensuring seamless scalability without compromising on speed or integrity.

With built-in HA, data persistence options, and robust security features, Redis Cloud is architected to meet the demands of mission-critical applications. Its automatic failover guarantees that your applications remain operational and responsive, even during unforeseen system disruptions.

Furthermore, for those prioritizing infrastructure flexibility, Redis Cloud provides cross-platform support, allowing enterprises to integrate it within multi-cloud strategies or on-premises environments with ease. This agility ensures that businesses remain resilient and adaptive in an ever-evolving technological landscape.

Often, before adopting a new technology...

Summary

In this last chapter, we delved into Redis Stack, emphasizing its role as a robust development environment. We explored the pivotal aspects of scalability and HA, which ensure the seamless operation and adaptability of Redis systems. The topic of security hardening emerged as a cornerstone, introducing tools such as ACL and TLS to protect data.

Transitioning to Redis Enterprise, we highlighted its proficiency in supporting production environments with features such as multi-tenancy architecture and dynamic auto-tiering. This section also emphasized advanced HA mechanisms and further security refinements.

Last, but not least, this chapter introduced Redis Cloud, a fully managed DBaaS solution, touching upon the crucial concept of TCO. We outlined the numerous benefits of Redis Cloud and its flexible IaC offerings and concluded with an overview of its three distinct plans. In essence, this chapter provided you with a holistic understanding of the Redis ecosystem, from development...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Redis Stack for Application Modernization
Published in: Dec 2023Publisher: PacktISBN-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.
undefined
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

Authors (2)

author image
Luigi Fugaro

Luigi Fugaro's first encounter with computers was in the early 80s when he was a kid. He started with a Commodore Vic-20, passing through a Sinclair, a Commodore 64, and an Atari ST 1040, where he spent days and nights giving breath mints to Otis. In 1998, he started his career as a webmaster doing HTML, JavaScript, Applets, and some graphics with Paint Shop Pro. He then switched to Delphi, Visual Basic, and then started working on Java projects. He has been developing all kinds of web applications, dealing with backend and frontend frameworks. In 2012, he started working for Red Hat and is now an architect in the EMEA Middleware team. He has authored WildFly Cookbook and Mastering JBoss Enterprise Application Platform 7 by Packt Publishing.
Read more about Luigi Fugaro

author image
Mirko Ortensi

Mirko Ortensi earned a degree in Electronic Engineering and a Master's degree in Software Engineering. Mirko's career has spanned several roles from Software Engineering to Customer Support, particularly centered around distributed database systems. As a Senior Technical Enablement Architect at Redis, Mirko shares technical knowledge about Redis's products and services.
Read more about Mirko Ortensi