Code mobility

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

In distributed computing, code mobility is the ability for running programs, code or objects to be migrated (or moved) from one machine or application to another.[1] This is the process of moving code across the nodes of a network as opposed to distributed computation where the data is moved.

It is common practice in distributed systems to require the movement of code or processes between parts of the system, instead of data.[1]

Examples of code mobility include scripts downloaded over a network (for example JavaScript, VBScript), Java applets, ActiveX controls, Flash animations, Shockwave movies (and Xtras), and macros embedded within Microsoft Office documents.[2]

Overview

The purpose of code mobility is to support sophisticated operations. For example an application can send an object to another machine, and the object can resume executing inside the application on the remote machine with the same state as it had in the originating application.

Code mobility can be either Strong or Weak
[1]
  • Strong code mobility involves moving the code, data and the execution state from one host to another. This is important in cases where the running application needs to maintain its state as it migrates from host to host.
  • Weak code mobility involves moving the code and the data only. This may necessitate restarting the execution of the program at the destination host.
Several paradigms, or architectural styles, exist within code mobility
[1]
  • Remote evaluation — A client sends code to a remote machine for execution.
  • Code on demand — A client downloads code from a remote machine to execute locally.
  • Mobile agents — Objects or code with the ability to migrate between machines autonomously.

Implementations

Within code mobility, the Mobile Agent paradigm has conventionally attracted the most interest and research,[3] however some recent work has produced general purpose implementations.[4]

Mobile agent frameworks
General purpose
  • Mobility-RPC — Mobile agent, remote evaluation, code on demand, RPC, Java [4]

See also

References

  1. 1.0 1.1 1.2 1.3 Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. 4.0 4.1 Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.