2013年12月18日星期三

Has been applied to calls between , how to choose rpc or mq?

Ask everyone calls between the two systems , it is the choice rpc or mq, talk about it and select your system

such rpc can be a simple spring httpinvoker, but the premise is all java applications and are used spring framework,
can choose restful web service or a heavyweight soap web service,
or use rmi, or write java api socket program ;
mature soa or using third-party products, such as alibaba 's dubbo

or use mq system

But for calls between two applications , the above methods can be used, the choice of how we are , where several aspects to the choice of it ?

------ Solution ------------------------------------ --------
project used ActiveMQ, can be downloaded ActiveMQ agency services as message forwarding station , to achieve data transmission between the two applications , and ActiveMQ failover support for 32 and 64- bit operating systems are supported, in my experience is concerned , activeMQ is a good choice, you can download the first study, http://download.csdn.net/detail/baohuan_love/6683581
- ----- Solution --------------------------------------------

you that this is not analyzed very Okay , basically that's all
------ For reference only ---------------- -----------------------
there are more comments? I personally feel that if it is needed to return the data in real time , then mq field it may be irrelevant , mq advantages of asynchronous and decoupled , access needs to be sent immediately after the sending end of the scene estimated return information or rpc more suitable , we mean it

没有评论:

发表评论