Redis

Learn how to work with our managed Redis databases.

December 14, 2023 2 Min Read
Redis
Redis

Alexander Voll

Product Marketing Engineer

Table of Contents

Redis (Remote Dictionary Server) is an in-memory data structure store, which can be used as a database, cache, and message broker. It supports a variety of data structures such as strings, hashes, lists, sets, sorted sets, etc. Known for its high performance and flexibility, Redis is a popular choice for caching, session management, gaming, real-time analytics, and more.

Set up your database

Redis integration is available as a managed service right inside of Codesphere through the Marketplace. You can access it from your Dashboard by clicking the the Marketplace tab.

From here, select the Redis integration and configure it according to your project needs.

While setting up, you'll see an option to add standby nodes. These nodes are copies of your main database, or primary node, and they automatically step in if the main one fails.

They keep up-to-date with the primary node by copying its changes. This ensures a quick switch if anything goes wrong. Standby nodes are particularly important for production environments, where you need high availability of your database and any downtime has immediate monetary implications.

The number of standby nodes you can add depends on the plan you choose.

Your database will then be created. This will take several minutes depending on the configuration. Please be patient until the creation is finished. You can check the status of your database from your Dashboard as well under the Databases tab. Once the process has finished, you will be able to access your database's Connection Parameters by clicking Show info.

You can now use your database in your desired project. To connect to the database, you will need to utilize the connection parameters. The Host parameter specifies the location of your database. Note that you will also need to append the port number to your host in your project.

For example, if your host is mydatabase.codesphere.com and your port number is 5432, your connection string should look like this: mydatabase.codesphere.com:5432.

About the Author

Redis

Alexander Voll

Product Marketing Engineer

Alex brings a unique perspective through interdisciplinary experience from various corporate stops. He's responsible for most outward facing web applications, including the website and the blog.

More Posts

Monitoring & Alerting

Monitoring & Alerting

Learn how to access Codesphere's built in resource monitoring and check the uptime of your applications.

Path based routing

Path based routing

Learn how to connect multiple independent applications to a single domain by associating different paths with distinct workspaces

Staging Environments

Staging Environments

Learn how to use Codesphere's Domains to improve your release process.