A Redis connection allows you to read data from and write data to Redis by using Redis Reader and Writer. You can configure sync nodes for Redis by using the codeless user interface (UI) or code editor.

Remote Directory Server (Redis) is a document-based Not only SQL (NoSQL) database that provides both persistent and in-memory database services. Based on the highly reliable two-node hot standby architecture and the cluster architecture that can be seamlessly scaled, Redis can provide high read and write performance and flexible capacity to meet changing business needs.

Workspaces in standard mode support the connection isolation feature. You can add connections for the development and production environments separately and isolate the connections to protect your data security.

Procedure

  1. Log on to the DataWorks console as a workspace administrator, find the target workspace, and then click Data Integration in the Actions column.
  2. In the left-side navigation pane, click Connection to go to the Workspace Manage > Data Source page.
  3. On the Data Source page that appears, click Add Connection in the upper-right corner.
  4. In the Add Connection dialog box that appears, click Redis in the NoSQL section.
  5. In the Add Redis Connection dialog box that appears, set the parameters.
    The Redis connection type can be set to ApsaraDB for RDS or JDBC Connection Mode. You can select a type as required.
    • The following table describes the parameters that appear after you set Connect To to ApsaraDB for RDS.
      Parameter Description
      Connect To The type of the connection. Here, set the value to ApsaraDB for RDS.
      Connection Name The name of the connection. The name can contain letters, digits, and underscores (_) and must start with a letter.
      Description The description of the connection. The description cannot exceed 80 characters in length.
      Applicable Environment The environment in which the connection is used. Valid values: Development and Production.
      Note This parameter is available only when the workspace is in standard mode.
      Region The region of the ApsaraDB for Redis instance.
      Redis Instance ID The ID of the ApsaraDB for Redis instance. You can view the ID in the ApsaraDB for Redis console.
      Redis Password The password for accessing ApsaraDB for Redis. Leave it blank if no password is required.
    • The following table describes the parameters that appear after you set Connect To to JDBC Connection Mode.
      Parameter Description
      Connect To The type of the connection. Here, set the value to JDBC Connection Mode.

      If you select this type of connection, you must run sync nodes on custom resource groups. For more information, click here in the wizard.

      Connection Name The name of the connection. The name can contain letters, digits, and underscores (_) and must start with a letter.
      Description The description of the connection. The description cannot exceed 80 characters in length.
      Applicable Environment The environment in which the connection is used. Valid values: Development and Production.
      Note This parameter is available only when the workspace is in standard mode.
      Server Address The server address in the host:port format.
      Add Server Address Click the button to add a server address in the host:port format.
      Redis Password The password for accessing the Redis service.
  6. Click Test Connection.
  7. After the connectivity test is passed, click Complete.

What to do next

Now you have learned how to configure a Redis connection. You can proceed with the next tutorial. In the next tutorial, you will learn how to configure Redis Writer.