Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Remote procedure call, stub, marshalling, idempotent operation, at-most-once and at-least-once semantics » ?

Aussi appelé : remote procedure call · stub · marshalling · idempotent operation · at-least-once semantics · at-most-once semantics

Definition 25.5 University Computer Science — Year 3 · Chapitre 25 — Distributed Systems: Time, Failures and Remote Calls

A remote procedure call (RPC) runs a function in another process, usually on another machine, as if it were a local call. The caller calls a stub, a local function with the same signature, which turns the name of the function and its arguments into a message, sends it, waits for the reply and returns its result; on the server, another stub does the opposite. Turning values into a sequence of bytes that can travel is marshalling, and the reverse unmarshalling. An operation is an idempotent operation if running it twice has the same effect as running it once. A call has at-least-once semantics if, when the caller gets a reply, the function ran one or more times, and at-most-once semantics if it never runs twice for one call.

Lire dans le chapitre →