简体   繁体   English

Laravel 8 一对一消息,有什么建议吗?

[英]Laravel 8 One to One messaging, any suggestions?

Hello I would like to implement a real-time one to one messaging system between the users of my application.您好我想在我的应用程序的用户之间实现一个实时的一对一消息传递系统。 The estimated amount of users is 10000. I don't want to use web sockets or any other similar solution.估计用户数量为 10000。我不想使用 web sockets 或任何其他类似的解决方案。 I also use livewire for other features.我还将 livewire 用于其他功能。 I though of creating this using ajax polling and refresh the messages every 10 seconds but I assume that this way would not be efficient and may slow down my application's performance.我虽然使用 ajax 轮询并每 10 秒刷新一次消息来创建它,但我认为这种方式效率不高,并且可能会降低我的应用程序的性能。

Do you have any suggestions on how can I achieve a real-time one to one messaging system?您对如何实现实时一对一消息传递系统有任何建议吗?

Laravel Websockets is your friend;) Laravel Websockets是你的朋友;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM