Re: Fastest way to pass messages?



On Apr 6, 1:46 pm, Chris <spam_me_...@xxxxxxxxxx> wrote:
Daniel Pitts wrote:
On Apr 5, 6:50 pm, Chris <spam_me_...@xxxxxxxxxx> wrote:
Our app needs to have a central computer send a message to several other
computers, and then gather a response from each. This has got to happen
hundreds of times per second (not necessarily synchronously). Each
message is just an array of bytes, usually less than 100 bytes on the
way out and less than 8K on the way back.

What's the fastest, most efficient way to do it? RMI? Jini? JMS? REST?
Raw sockets?

I expect that some would say raw sockets, but my guess is that one or
more of the others might be nearly as fast and have other advantages as
well. Any advice is appreciated.

I think you're going about this wrong...
Do what is *easiest* first (not most efficient).
If its NOT fast enough. Figure out why (don't guess or speculate,
*measure*), and then complicate your code only when necessary.

Without knowing more about your problem domain, I would be loathed to
suggest one technology over another.

This is extremely not helpful. If you don't know anything, please don't
respond.
I don't know everything, but many people would point out that I know
something, therefor I can respond if I choose.

Advice about how to write code in general is patronizing, and in this
case, completely misplaced. The problem domain is crystal clear.

Actually, your problem domain is NOT crystal clear.
If your messages would make sense as a method call: String
something(int a, String b); then I might suggest using RMI.

If the queries are more complicated, I might suggest a web-service
approach.

If your queries and results are likely to evolve over time, I might
suggest using XML.

You're question was "which is fastest". You'll find on this group
that most responses to that form of question are "Why do you need
fastest?"

The advice I gave you can save you and your company time and money,
much more than knowing which is more "efficient". If you wanted the
most efficient application, write the damned thing in assembly. If
you want a working and low-bug-rate application, make it work before
making it fast.


.



Relevant Pages

  • RE: Add Record with combo box
    ... Private Sub JCTARSectionLayer1ID_NotInList(NewData As String, ... Response As Integer) ... Dim strMsg As String ... Dim rst As DAO.Recordset ...
    (microsoft.public.access.formscoding)
  • RE: Add Record with combo box
    ... Private Sub JCTARSectionLayer1ID_NotInList(NewData As String, ... Response As Integer) ... Dim strMsg As String ... Dim rst As DAO.Recordset ...
    (microsoft.public.access.formscoding)
  • RE: Cbo Update Problems
    ... Dim strFormName As String ... > original form, but it then asks if I want to add the part number again. ... > Private Sub PartNumber_NotInList(NewData As String, Response As Integer) ... > Dim strMessage As String ...
    (microsoft.public.access.forms)
  • RE: Combo Box and Limit To List
    ... No that is not on the list I get the message "Add a new charge No?". ... Private Sub ChargeNo_EL_NotInList(NewData As String, Response As Integer) ... Dim mbrResponse As VbMsgBoxResult ...
    (microsoft.public.access.formscoding)
  • Re: :-((Off we go again :-((
    ... let Judith see your response, La Puce's response and then your reply to La Puce's. ... Judith posts on a regular basis. ... wrong advice could be lethal to their plants. ... I don't consider that my reflection warrants a response. ...
    (uk.rec.gardening)