Redis (REmote DIctionary Server) is an open source data store, which holds data in memory and functions as a database, cache, and message broker. As a NoSQL database, Redis stores key/value pairs in data structures (such as string, hash, and list data types) rather than within tables and other database objects, which are used by SQL-based relational databases. Redis also provides a set of commands that can be used to execute operations on the Redis server (for example, SET and GET) in much the same way as SQL-based statements such as INSERT or SELECT.
You can use IBM App Connect to pass key data between Redis and other apps – automatically, in real time. You can do so using configuration and data mapping without a need for coding, and can achieve a return on your investment in minutes/hours, not days/months.
This guide shows you how.
If you can’t find what you want, or have comments about the “how to” information, please either add comments to the bottom of this page or send us comments by email.
What should I consider first?
Before you use App Connect Designer with Redis, take note of the following considerations:
- App Connect supports the following cloud-hosted Redis deployments:
- To create an integration flow that passes data between Redis and other apps, you must connect App Connect to each app in the flow. To connect App Connect to your Redis account, you’ll need the following connection details, which should be available from your instance. For example, if using IBM Cloud Databases for Redis, you can obtain the connection values from the Connections panel and Service Credentials panel of your service instance in IBM Cloud.
- Redis host name or IP address: Specify the host name or IP address of the Redis server.
- Redis port number: Specify the port number of the Redis server.
- Password: Specify the password required for authentication.
- Database number: Optionally specify the database index of the database to connect to, typically from a range of
15. (The index is generally shown at the end of a Redis URL.) The default is
- Allow certificate validation: Set to
falseto indicate whether the database is secured using TLS authentication and encryption. If set to
true, you’ll need to provide an SSL or a TSL certificate to validate against the root certificate from the certificate authority (CA). The default is
- Certificate: If Allow certificate validation is set to
true, a certificate is mandatory. Specify the contents of the CA signed certificate for the cluster that hosts the database, in Base64 format. You can copy and paste the Base64-encoded contents directly from your instance.
Example of completed fields for connecting from App Connect
You can connect to the Redis app either from the Applications tab on the App Connect Catalog page, or when you add the app to a flow.
Tip: Immediately after you connect, rename your account with a meaningful name that helps you identify the instance that the account relates to. You can rename an account only from the Applications tab on the Catalog page, and before it’s used in a flow. For information about renaming accounts, see Managing accounts in App Connect.
- App Connect supports the following Redis data structures, which are exposed as objects:
- Sorted Sets
App Connect also supports a subset of Redis commands, which are exposed as actions. You can see which Redis commands are supported by expanding the list of objects on the Applications tab. For example, the following commands are supported for hashes: