4.4 Moving Ahead
In this chapter, we learned the following:
-
There are two different ways to exchange objects across processes, passing by reference and passing by value.
-
dRuby chooses which way to pass by checking whether an object can be serialized by
Marshal.dump
. -
You can change the default exchange method by using
DRbUndumped
. -
If a process receives unknown objects,
DRbUnknown
will let you save and transfer these unknown objects.
In the next chapter, you’ll find out about multithreading in Ruby and see how dRuby makes use of it.
English edition
The dRuby Book: Distributed and Parallel Computing with Ruby
by Masatoshi Seki (Translated by Makoto Inoue)
Copyright (C) 2012 by Masatoshi Seki
Originally published by Pragmatic Programmers, LLC.
Original Japanese edition
dRuby ni yoru Bunsan Web Programming
by Masatoshi Seki
Copyright (C) 2005 by Masatoshi Seki
Published by Ohmsha, Ltd.
3-1 Kanda Nishikicho, Chiyodaku, Tokyo 101-8460
Japan
The adobe copyright notice shall be included in all copies.