[BUG] How to ensure data consistency between redis and mongo when sending messages

Author: plum330Created Jan 23, 2025Updated Jun 26, 2026
Labelsbugcommercial planning

OpenIM Server Version

All Version

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

When sending messages, if the writing to redis is successful, then kafka will be asynchronously persisted to mongo. If writing to kafka fails at this time, the data between redis and mongo will be inconsistent, resulting in message loss.

Screenshots Link

No response

Source: openimsdk/open-im-server