search

Home  >  Q&A  >  body text

java - 两个实时交互比较多的系统,使用什么协议做连接?

同一产品,服务端有两个后台服务,两个服务之间要互相pull ,push数据。使用java语言实现,是不是最快的方案是通过socket的连接的方式,类似使用mina ,netty这样的成熟框架来做?
补充:
在业务上面,两个系统可能会分别被扩展。将来也许是N个厂商都分别其实其中一个,或是两个。然后不管是谁实现的,系统间都可以对接。所以,很多兄弟们提的框架内的交互,可能就不是很合适。必须是可标准化的传输协议。

伊谢尔伦伊谢尔伦2874 days ago687

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 12:02:43

    The questioner can take a look at the zeromq framework. zmq includes PULL and PUSH modes, uses asynchronous io communication and shields communication details from the upper layer. Reference:
    Portal

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 12:02:43

    You can also try the pub/sub method of redis

    reply
    0
  • Cancelreply