Home Comments

Could Ice support load balance against with per request?

jim.yefengjim.yefeng Member jim yefengOrganization: HonestySNSProject: Android AddressBook SNS
Incurrently ICE supports load balance against with per connection, which is good for statusfull request. But sometimes the request is designed with statusless, load balance against with per request is best for this circumstances.
I suggest ice to develop this function.

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    This is already supported. You need to disable connection caching to allow a proxy to use different connections. See Connection Caching in the Ice manual for more information.

    For an example, see the IceGrid replication demo from the demo/IceGrid directory of your Ice demo distribution.

    Cheers,
    Benoit.
  • jim.yefengjim.yefeng Member jim yefengOrganization: HonestySNSProject: Android AddressBook SNS
    benoit wrote: »
    Hi,

    This is already supported. You need to disable connection caching to allow a proxy to use different connections. See Connection Caching in the Ice manual for more information.

    For an example, see the IceGrid replication demo from the demo/IceGrid directory of your Ice demo distribution.

    Cheers,
    Benoit.

    I just noticed that the connection must be re-established before each request, which is expensive. How to avoid the re-establish the connection?
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    The connection is not re-established for each request. If you run your client with the property Ice.Trace.Network=1 set, you will see that the connections to the servers are established once and reused for each request.

    See the connection establishment section in the Ice manual for more information on how connection reuse works.

    Cheers,
    Benoit.
Sign In or Register to comment.