duplicated events on emit is my false.
I set wrong parameter while setting up everything with nginx , match client versions , etc ...
Wrong config in backend:
socketio = SocketIO(app, logger=True, engineio_logger=True, policy_server=True, async_mode='eventlet', manage_session=True, cors_allowed_origins="*", message_queue=socket_io_msg_q)
The correct one that fixed duplication:
socketio = SocketIO(app, logger=True, engineio_logger=True, policy_server=True, async_mode='eventlet', manage_session=True)
The problem is at this line:
message_queue=socket_io_msg_q <-- error!
This will trigger all emit events from backend server to REDIS then get back to client. If i have 50 replicas, clients will receive the amount of message from these replicas.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…