RobertoBifulco.it

  • topics
  • publications
  • il gatto
  • account
Home › Rich Client Web Applications: the future so near › Chapter IV

IV.1RPC requirements

Roberto Bifulco — Mon, 02/11/2008 - 15:06

The RPC framework we want to build will provide a tool to automatically generate a set of Java and PHP5 classes to handle the service's calls between client and server. The approach is the classic with stub classes:

  • Client stub: provide a service proxy, in order to give to the programmer the abstraction that he is making a local call. These classes are generated in Java and then translated in Javascript by the GWT compiler;

  • Server stub: provide a service skeleton that the programmer completes giving the service implementation. These classes are generated in PHP5.


Figure 5: RPC architecture



 

The framework uses a custom RPC protocol to makes calls. We will not give deep informations on this protocol because it is designed only for sample purpose and is not a really good protocol. Anyway, the main goals of an RPC protocol are the next:

  • to provide a way to identify the service to call;

  • to provide a way to make a service call;

  • to provide a way to identify the request and so to associate the responses to their requests.

While the first two requirements are quite simple to satisfy and there is not much more to say than what was already said (for example in [25]), the third requirement is slightly more interesting.

An RPC protocol based on HTTP is basically asynchronous, so we can't use a simple request serialization to identify requests and their responses. The approach we used for our sample protocol is to provide a separate request channels abstraction. In other words, every request is done on a dedicated channel, where only the request and its response are exchanged. This way the identification is simplified also for the programmer, that will use a simple callback pattern to handle the response to a request.

‹ Chapter IV up IV.2GJPR ›
  • Printer-friendly version

nfl jerseys suppliers Fashion

Anonymous (not verified) — Mon, 01/02/2012 - 08:03

nfl jerseys suppliers Fashion brand
wholesale coach bags the trend of fashion
coach outlet Don't miss the chance it's very good
coach outlet store comfortable with it
wholesale designer handbags well known great
coach handbags outlet attractive and reasonable price
cheap coach online shopping
coach outlet store may most likely need
coach handbag outlet A good thing
authentic nfl jerseys for sale fashion designed
cheap authentic nfl jerseys together with lifestyle

  • reply

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Rich Client Web Applications: the future so near

  • Preface
  • Introduction
  • Chapter I
  • Chapter II
    • II.1Data serialization
    • II.2AJAX tools
  • Chapter III
    • III.1Attack Types
      • III.1.1Cross Site Scripting (XSS)
      • III.1.2Cross Site Request Forgeries (CSRF)
      • III.1.3JSON Hijacking
  • Chapter IV
    • IV.1RPC requirements
    • IV.2GJPR
  • Chapter V
    • V.1Architecture
    • V.2The polling problem
  • Bibliography
  • topics
  • publications
  • il gatto
  • account