我们想要创建一个针对1000万用户的聊天应用程序。为此,我们希望使用spring boot message broker和spring-web-socket。我们不想使用任何消息代理,如ActiveMQ或任何其他代理。spring boot message broker有什么限制吗?或者有必要使用ActiveMQ或其他任何代理吗?
发布于 2021-01-30 00:51:22
没有像"Spring Boot Message Broker“这样的特性。你被误导了。请阅读有关WebSockets支持的Spring Framework文档。没有特定于Spring Boot的东西:https://docs.spring.io/spring-framework/docs/current/reference/html/web.html#websocket
对于这样的10M要求,我的建议确实是使用外部代理,比如ActiveMQ或RabbitMQ。通过这种方式,您可以扩展您的应用程序以实现可持续性,并且不会占用本地内存来为所有这些用户保留会话。
https://stackoverflow.com/questions/65958279
复制相似问题