Using Redis could potentially help alleviate some of the pressure on your Aerospike database, especially if your application has high read demands or if there’s some data that doesn’t need to be fetched from Aerospike in real time for every request.For data that doesn’t change frequently (like user profiles, configuration settings, or lookup data), you could store it in Redis as a cache layer in front of Aerospike.
By doing so you can:
Redis is also good for Distributed Locking or Rate limiting specifically in a concurrent environment. Redis’s distributed locking mechanism (using something like Redlock) can help ensure only one goroutine or instance accesses Aerospike at a time for specific actions.