Jiménez-Peris R., Patiño-Martínez M., Ballesteros F.J., Arévalo S. (1999) Efficient and Extensible Multithreaded Remote Servers?. In: González Harbour M., de la Puente J.A. (eds) Reliable Software Technologies — Ada-Europe’ 99. Ada-Europe 1999. Lecture Notes in Computer Science, vol 1622. Springer, Berlin, Heidelberg
In many cases, servers must impose a protocol of calls to their clients, and at the same time handle multiple client requests. The MT-Rendezvous design pattern greatly simplifies both tasks: separate server threads handle separate clients or sessions, and each different call protocol is handled by means of rendezvous.
One of the most significant performance problems in this kind of system is the latency introduced by network messages exchanged between clients and servers. Another design pattern, CompositeCalls, has been used to achieve dramatic performance improvements. With CompositeCalls clients send entire programs to the server so that the number of messages exchanged can be greatly reduced. Moreover, servers can be dynamically extended by using CompositeCalls.
Therefore, an expressive and effcient server model can be obtained by mixing both patterns within the same framework. However, as both patterns overlap, its integration is not a trivial task.
In this paper we describe how can both patterns be combined, including a brief description for its instantiation in Ada 95. Besides, we show concrete applications where the compound pattern, CompositeRendezvousCalls, can be employed, including a transactional framework for distributed Ada applications, TransLib.