简体   繁体   English

我可以在没有 Message Broker 的情况下使用 Spring Integration 吗

[英]Can I use Spring Integration without Message Broker

I'm building a near real-time data management system and I found out that Spring Integration is exactly what I need to implement the whole data management life cycle in a distributed and scalable way.我正在构建一个近乎实时的数据管理系统,我发现 Spring Integration 正是我以分布式和可扩展方式实现整个数据管理生命周期所需要的。 However, I'm wondering if there's a way to achieve it on different virtual machine without using a message broker (eg ActiveMQ, RabbitMQ)但是,我想知道是否有一种方法可以在不使用消息代理(例如 ActiveMQ、RabbitMQ)的情况下在不同的虚拟机上实现它

I know that ZeroMQ should probably do the job but (at this time) it seems not to be officially supported by the Spring Integration project.我知道 ZeroMQ 应该可以完成这项工作,但(此时)它似乎没有得到 Spring Integration 项目的正式支持。

So, is there a way to distribute the project architecture over many servers using only Spring Integration (without message broker)?那么,有没有一种方法可以仅使用 Spring Integration(没有消息代理)将项目架构分布到多个服务器上?

Well, you can use built-in TCP/UDP support to start socket servers and clients for them: http://docs.spring.io/spring-integration/docs/4.3.6.RELEASE/reference/html/ip.html好吧,您可以使用内置的 TCP/UDP 支持为它们启动套接字服务器和客户端: http : //docs.spring.io/spring-integration/docs/4.3.6.RELEASE/reference/html/ip.html

There is a Zookeeper support as well: http://docs.spring.io/spring-integration/docs/4.3.6.RELEASE/reference/html/zookeeper.html还有一个 Zookeeper 支持: http : //docs.spring.io/spring-integration/docs/4.3.6.RELEASE/reference/html/zookeeper.html

Also you can take a look to Spring Integration extension for Hazelcast: https://github.com/spring-projects/spring-integration-extensions/tree/master/spring-integration-hazelcast .您也可以查看 Hazelcast 的 Spring 集成扩展: https : //github.com/spring-projects/spring-integration-extensions/tree/master/spring-integration-hazelcast

Also you always can distribute states via many other protocols: shared DB (Mongo, Redis, Gemfire etc..) or even just figure out something based on the shared file system on the FTP.此外,您始终可以通过许多其他协议分发状态:共享数据库(Mongo、Redis、Gemfire 等),或者甚至只是根据 FTP 上的共享文件系统找出一些东西。

Yes, there is no ZeroMQ support yet: https://jira.spring.io/browse/INT-3045 .是的,目前还没有 ZeroMQ 支持: https : //jira.spring.io/browse/INT-3045 But Contribution is always welcome!但贡献总是受欢迎的!

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

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