Concurrent Proxy Invocations

Proxies are thread-safe: several threads can invoke operations on the same proxy concurrently, without additional synchronization.

A proxy caches its connection by default. When a thread makes invocations on this proxy one after the other, Ice sends their requests on the cached connection in the same order. Invocations made concurrently from several threads have no defined order, and neither do the invocations on a proxy that does not cache its connection.

On the server side, Ice reads the requests received on a connection in the order the client sent them. A thread pool with several threads dispatches these requests concurrently, which loses this order. To dispatch the requests of a connection one at a time, in order, see Serializing the Messages of Each Connection.