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

RedisInsight – the Data Management GUI

An essential aspect of the Redis Stack revolves around the developer experience. The developer journey extends beyond just the availability of libraries and frameworks; it also encompasses the suite of tools provided to augment the development process.

One of the key tools offered by Redis is RedisInsight, a comprehensive graphical user interface (GUI). This GUI serves as a gateway to interact with your Redis databases visually.

RedisInsight offers a broad spectrum of features, from visually exploring your data to crafting queries based on your specific requirements. It serves as an invaluable asset when debugging and troubleshooting, providing insights into your data like never before.

Chapter 7, Redis as a Time Series Database, thoroughly demonstrated the efficient usage of RedisInsight, showcasing how you could visualize time series data points graphically. Just as it allows you to visualize time-series data, RedisInsight also...

Technical requirements

To follow along with this chapter, you need to have RedisInsight installed in your local environment.

To obtain RedisInsight, start by navigating to the official Redis website here: https://redis.com/redis-enterprise/redis-insight/

Once there, locate and click on the Download RedisInsight Now button, which will direct you to a form. Fill in all the required details on the form. After you’ve completed the form, click DOWNLOAD. This action will trigger the download of the RedisInsight software.

As the download progresses, the installation wizard will guide you through the rest of the setup process. Follow its instructions carefully to ensure smooth installation. Upon the completion of the installation process, you are free to launch and explore your freshly installed RedisInsight.

As of the time at which this guide was written, the latest available version of RedisInsight is 2.36.0 Be sure to stay updated and take advantage of the enhancements...

Connecting to the Redis Stack database

When you first launch RedisInsight, you’ll be greeted by the initial application screen, represented as follows:

Figure 10.1 – RedisInsight welcome screen

Figure 10.1 – RedisInsight welcome screen

The application first prompts you to establish a connection with a Redis database. Start this process by clicking on the ADD REDIS DATABASE button.

Connecting to a Redis database can be achieved in multiple ways. You can manually input the connection parameters, such as the IP address, port number, username, and password. Alternatively, you can utilize the auto-discovery feature offered by the Sentinel protocol or use the features provided by Redis Cloud and Redis Enterprise that you will learn about later in this chapter.

Let’s begin with the manual connection approach. You’ll need to enter the following:

  • Host: The fully qualified domain name (FQDN) of the IP address of your database endpoint
  • Port: The port to which...

Interacting with data

Interacting with your data efficiently is enabled by the workbench feature in RedisInsight. The workbench section, represented by the second icon on the vertical panel on the left side, refers to a section of the tool where you can interact with its Redis databases. It allows you to write and execute Redis commands, query data, view results, and generally interact with your data.

For example, you could run aggregation queries, visualize time-series data as charts, or even zoom in to specific parts of a chart (to revert to the original view after zooming, simply double-click anywhere on the chart).

A useful interactive feature of this chart allows you to zoom in to any specific section of the data. This can be achieved by dragging your cursor over the desired section of the chart, demonstrated as follows:

Figure 10.8 – RedisInsight Time Series chart zoom interaction

Figure 10.8 – RedisInsight Time Series chart zoom interaction

The chart representation isn’t limited to a single...

Analyzing data

The analysis tools provide insights into the kinds of data types in your database and their distribution. They also monitor performance and flag any slow queries.

First, let’s delve into data distribution. The Database Analysis section offers Data Summary where you can view the breakdown of your data. To generate this summary, you’ll need to collect all your data by clicking on the New Report button located in the top-right corner. Following this, your Data Summary should be visible and may resemble the following:

Figure 10.9 – RedisInsight Data Summary report

Figure 10.9 – RedisInsight Data Summary report

Another useful feature is a dedicated section for monitoring memory consumption. This provides insights into whether your data will be freed due to expiration or eviction policies:

Figure 10.10 – RedisInsight memory consumption forecast

Figure 10.10 – RedisInsight memory consumption forecast

Two additional sections, TOP NAMESPACES and TOP KEYS, provide further granularity. TOP...

Summary

RedisInsight is a robust GUI designed to make working with Redis databases much simpler and more intuitive. It allows you to interact with your databases visually, enabling you to more easily access your data, run queries, and troubleshoot any issues. This is extremely beneficial, as it streamlines many of the tasks associated with managing a Redis database, ultimately saving you time and effort.

Furthermore, RedisInsight isn’t just about ease of use – it also provides powerful features and functionality that can assist you in optimizing the performance and utilization of your Redis databases.

In this chapter, you have acquired valuable skills with the use of RedisInsight, starting with the process of downloading and installing the application. Furthermore, you’ve also learned how to establish a connection with a Redis database, which forms the basis for most operations you’ll perform with Redis. This is a critical step in managing and manipulating...

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