同一产品,服务端有两个后台服务,两个服务之间要互相pull ,push数据。使用java语言实现,是不是最快的方案是通过socket的连接的方式,类似使用mina ,netty这样的成熟框架来做? 补充: 在业务上面,两个系统可能会分别被扩展。将来也许是N个厂商都分别其实其中一个,或是两个。然后不管是谁实现的,系统间都可以对接。所以,很多兄弟们提的框架内的交互,可能就不是很合适。必须是可标准化的传输协议。
小伙看你根骨奇佳,潜力无限,来学PHP伐。
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
You can also try the pub/sub method of redis
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
You can also try the pub/sub method of redis