Redis is not recommended to distribute voice directly. You can:
First store the voice somewhere and generate an ID
Then use Redis subscription to distribute this ID
The client receives this event and actively pulls the voice of this ID.
Redis is blocked after being subscribed. KILL the process and it will be canceled Are you going to make an APP? The mobile network is unstable, the network fluctuates, the connection is disconnected and the subscription is canceled. If it is mobile, you can maintain a socket for distribution. The server can consider node.js and the like
Redis is not recommended to distribute voice directly.
You can:
First store the voice somewhere and generate an ID
Then use Redis subscription to distribute this ID
The client receives this event and actively pulls the voice of this ID.
Redis is blocked after being subscribed. KILL the process and it will be canceled
Are you going to make an APP? The mobile network is unstable, the network fluctuates, the connection is disconnected and the subscription is canceled.
If it is mobile, you can maintain a socket for distribution. The server can consider node.js and the like