This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes Java RPC options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Java RPC options" Watch "Java RPC options" New topic
Author

Java RPC options

saloni Bachchan
Greenhorn

Joined: Jun 08, 2012
Posts: 12
Hi,

I am fairly new to java. Basically a C++ programmer.Have recently switched to java and need to implement something in my project.
My requirement is for a server to send some data continously to it's subscribed client and also to provide this data when clients request for it on adhoc basis.
I want to know what are my options with Java.
I hear thrift and google protobufs are the way to go these days but don't want to go for it just because it is popular.Want to first understand if it suits my need.
Performance is a key for my project so the data should be pushed to the client as soon as it is availabe to the server.
so communication should be fast.And the data in the server is updated every few milliseconds throughout the day.I am still unsure about the size of the data.
Can someone tell why thrift and google protobuf is better than java RMI or message queues(JMS QPID) for RPC?.I really need to understand why people use thrift etc instead of message queues,RMI.

Thanks
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

Why do you want to do this?

In general, 99% of the time you think you want a Java RPC, you are better off not using an RPC at all.

Instead, send a message containing data, receive it, process it, and return results data in a message back.
saloni Bachchan
Greenhorn

Joined: Jun 08, 2012
Posts: 12
Hi Pat,
Thanks .I have chosen JMS qpid with thrift serialization .
Cheers
 
Consider Paul's rocket mass heater.
 
subject: Java RPC options
 
Similar Threads
Design Suggestions
confusion on FBN
Awaiting the exam results
Design of data access layer - please comment on
RMI marshaling and unmarshaling