Archived

This forum has been archived. Please start a new discussion on GitHub.

Does ICE support batched twoway invocation?

The client may send a number of twoway invocations to get values from server(s). If ICE supports
batched twoway invocation, the invocations can be buffered and explicitly flushed by client.
This would greatly reduce the overhead.

Thanks,
Shifu

Comments

  • matthew
    matthew NL, Canada
    We have discussed this internally, however, we don't have such a feature at present, nor are we likely to add it without a sponsor. Should we support such a feature it would also only be usable when using AMI requests to be practical. We'd also have to version the protocol, which is not something to be done lightly.
  • Is there any workaround to implement this feature?

    Thanks, matthew
  • matthew
    matthew NL, Canada
    You can design your interfaces to send a bunch of requests and replies. For example, if you had:
    interface Calc
    {
      int add(int n1, int n2);
    }; 
    

    This could be written as:
    interface Calc
    {
      int batchAdd(IntSeq numbers);
    };
    

    Naturally it is not as convenient as built in batching, but you can accomplish the same goal.