1.3 Moving Ahead
In this chapter, we learned the following:
-
We can use dRuby out of the box, because it comes with Ruby. All we need to do is require
drb/drb
to load the library. -
We use
DRb.start_service
to start a service. -
The URI identifies
DRbServer
. -
Each
DRbServer
object can associate with one object to expose it to the public. -
Clients create reference objects by specifying the URI.
Now that we understand the basics of writing a distributed app with dRuby, in the next chapter we’ll step back and study the concept of distributed systems in general. We’ll see how dRuby hides the complexity of these systems, thanks to the power of Ruby.
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.