Should I use Redis Pub/Sub or Redis Stream to solve the following problem?
- Each device has its own MYSQL database
- Each database need to be synced up between each other
Consider there are some cases of
- At some time, more than one devices will be offline. When it online, data need to be the latest version
- What if the data fail to update?
- Data delay while communicating
- Real-time communication between devices
Please advise the best suggestion to solve the sync up problem.
Reference: What are the main differences between Redis Pub/Sub and Redis Stream?