Learn

Redis Cloud Migration

Before migrating to Redis Cloud, you should evaluate the migration and consider the best option. We will describe three scenarios.

Database replacement#

If you can tolerate a flush of all your Redis data, there’s no need to migrate the data at all. You can point your application to a new Redis Cloud database by configuring your client libraries and start working with a fresh, empty database. This can be a valid option if you use Redis as a cache and can restart without data. However, slow performance may impact your service while data is rehydrated, especially if Redis is used as a cache.

Pros:

  • Simple to execute
  • Little to no Redis downtime

Cons:

  • Loss of all Redis data

Offline data migration#

If you use Redis for more than caching, such as session storage, you can't afford data loss or performance issues from a full data flush. For this, a durable persistence option is available. Next, consider if you can handle downtime, which might only last a few minutes, depending on the time needed to export and import your Redis data. If the downtime is acceptable, we recommend offline data migration. It's straightforward but will cause downtime during the data transfer from the source database to Redis Cloud.

Pros:

  • Simple to execute
  • Redis data is migrated from the source database to Redis Cloud
  • Supported by other Redis based solutions such as ElastiCache and Redis Enterprise
  • Data consistency

Cons:

  • Downtime during migration
  • Might take some time for large datasets

Live data migration#

Live data migration can be done without downtime or data loss, but it is more complex and requires careful consideration. This method uses an external tool called RIOT, which was developed by Redis experts. The documentation provides guidance, and expert support is available if needed.

Pros:

  • Migrates live data to Redis Cloud
  • No downtime

Cons:

  • More complex with potential issues
  • Might require additional compute instance
  • It may need tuning during testing
  • It may not work for large key sizes (100MB+)
  • Data consistency is not guaranteed
  • High CPU usage
  • It may require changes to source database
  • RIOT support is the best effort

How to migrate your data#

Once you determine which migration strategy to use, click on one of the links below to learn how to migrate your data.