Skip to main content

Valkey

What is Valkey

Valkey is a high-performance key/value datastore designed to efficiently handle a range of workloads, including caching, message queues, and primary database functions. It offers flexible deployment options as both a standalone daemon and a clustered system, with robust features for replication and high availability to ensure optimal performance and reliability. It is a versatile data structure store that offers excellent performance, flexibility, and a rich set of features. It's a valuable tool for applications that require efficient handling of various data structures and high-speed access.

Key Features

  • Rich Data Structures: Supports a wide range of native data structures, including strings, numbers, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs, and more.

  • In-Memory Performance: Designed for high-speed operations, leveraging in-memory storage for quick data access.

  • Expressive Commands: Provides a comprehensive set of commands for operating on data structures, enabling efficient data manipulation.

  • Native Extensibility: Supports Lua scripting for creating custom commands and data types, enhancing flexibility.

  • Clustering and High Availability: Can be run as either a standalone daemon or in a cluster, with options for replication and high availability.

  • Plugin System: Allows for the creation of custom modules to extend Valkey's functionality with new commands, data types, and more.

Use Cases of Valkey

  • Caching: Valkey can be used as a high-performance cache for frequently accessed data, improving application response times.

  • Message Queues: It can serve as a reliable and scalable message queue for asynchronous communication between components.

  • Primary Database: Valkey can be used as a primary database for applications that require high performance and in-memory data storage.

  • Real-time Analytics: It can be used for real-time data processing and analytics due to its high-speed capabilities.

How to create Valkey DBaaS

To proceed, click the "Add" button located in the upper-right corner of the screen:

After that, select the Valkey cluster and continue.

Valkey Image 1

Now select the plan according to your requirement.

Valkey Image 2

Now fill all the details and click on the next button.

Valkey Image 3

Once you have filled out all the necessary details, review them carefully on the summary page. If everything is accurate, click the "Create Database" button to proceed.

Valkey Image 4

After the cluster is created, you can see its details on the DBaaS listing page.

Valkey Image 5

Actions

Stop

To stop the cluster, click on the three dots and then select the Stop button.

Valkey Image 6

Start

To start the cluster, click on the three dots and then click on the Start button.

Valkey Image 7

Restart

To restart the cluster, click on the Restart button.

Valkey Image 8

Expand Disk Size

To expand disk size, click on the Expand Disk button.

Valkey Image 9

Delete

To delete the cluster, click on the Delete button.

Valkey Image 10

Whitelist IP

To whitelist an IP, click on the Add button in the Whitelisted IP tab.

Valkey Image 11

Users

To add a user to the Valkey database, click on the USERS tab and click on the Add button.

Valkey Image 12

Snapshot

To take a snapshot, click on the Take Snapshot button after selecting the Snapshots tab.

Valkey Image 13

Read Replica

To add a Read Replica, go to the Read Replica tab and click on the Add button.

Valkey Image 14

Monitoring

To see the monitoring details, click on the Monitoring tab.

Valkey Image 15

Alerts

To check the alerts, click on the Alerts tab.

Valkey Image 16

To configure Valkey, kindly click on the following link: Click Here

To connect to your database node using Valkey command line

Once your database has been provisioned and is in running status, you can get the database connectivity information on the dashboard under the connection details.

  • Public IPv4
  • Username
  • Password
  • Port

Enter the following command at a command prompt on your local or client desktop to connect to a Valkey database:

valkey-cli -u "redis://<'username'>:<'password'>@<Public_IP>:6379/<"dbaas name">"
warning

When including the password in the connection string, ensure it's properly URL encoded. This means replacing special characters like '@' with their corresponding URL-encoded equivalents. For example, '@' becomes '%40', etc.