Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Remote procedure call, stub, marshalling, idempotent operation, at-most-once and at-least-once semantics?

Também chamado de: remote procedure call · stub · marshalling · idempotent operation · at-least-once semantics · at-most-once semantics

Definition 25.5 University Computer Science — Year 3 · Capítulo 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.

Ler no capítulo →