Hostname: page-component-5db58dd55d-4jdj6 Total loading time: 0 Render date: 2026-06-05T04:54:01.384Z Has data issue: false hasContentIssue false

A theory of RPC calculi for client–server model

Published online by Cambridge University Press:  22 March 2019

KWANGHOON CHOI
Affiliation:
Chonnam National University, Gwangju, Republic of Korea (e-mail: kwanghoon.choi@jnu.ac.kr)
BYEONG-MO CHANG*
Affiliation:
Sookmyung Women’s University, Seoul, Republic of Korea (e-mail: chang@sookmyung.ac.kr)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

With multi-tier programming languages, programmers can specify the locations of code to run in order to reduce development efforts for the web-based client–server model where programmers write client and server programs separately and test the multiple programs together. The RPC calculus, one of the foundations of those languages by Cooper and Wadler, has the feature of symmetric communication in programmer’s writing arbitrarily deep nested client–server interactions. The feature of the calculus is fully implemented by asymmetric communication in trampolined style suitable for the client–server model. However, the existing research only considers a stateless server strategy in which all server states are encoded for transmission to the client so that server states do not need to be stored in the server. It cannot always correctly handle all stateful operations involving disks or databases. To resolve this problem, we first propose new stateful calculi that fully support both symmetric communication from the programmer’s viewpoint and asymmetric communication in its implementation using trampolined style. All the existing calculi either provide only the feature of asymmetric communication or propose only symmetric implementation suitable for the peer-to-peer model, rather than the client–server model. Second, the method used to design our stateful server strategy is based on a new locative type system which paves the way for a theory of RPC calculi for the client–server model. Besides proposing the new stateful calculi, this theory can improve the existing stateless server strategy to construct new state-encoding calculi that eliminate runtime checks on remote procedure calls present in the existing strategy, and it enables us to design a new mixed strategy that combines the benefits of both kinds of strategies. As far as we know, there are no typed multi-tier calculi that offer programmers the feature of symmetric communication with the implementation of asymmetric communication under the three strategies together.

Information

Type
Regular Paper
Copyright
© Cambridge University Press 2019 

Choi and Chang supplementary material

Choi and Chang supplementary material

Download Choi and Chang supplementary material(Video)
Video 40.5 MB
Submit a response

Discussions

No Discussions have been published for this article.