admin管理员组文章数量:1323225
Use Case:
For example, an app like Uber Driver requires the backend to maintain awareness of user-specific connections. Let's assume Uber's search algorithm shortlists 3 nearby drivers; the system needs to send ride requests to these 3 specific drivers. If the backend uses Server-Sent Events (SSE), it must determine which res
object corresponds to each user. Similarly, in the case of gRPC, the backend needs to identify which call
object is associated with each user.
We can use local map short of thing to store connections but that way is not that scalable So i want something more effective where i can store these connections with a userId reference and can be updated on user connection termination or new connection updates.
本文标签:
版权声明:本文标题:How to store "res" object in case of Server Sent Events (SSE) or "call" object in case of gR 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742078953a2419579.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论