Зарегистрироваться
Восстановить пароль
FAQ по входу

Seki Masatoshi (translated by Inoue Makoto). The dRuby Book. Distributed and Parallel Computing with Ruby

  • Файл формата pdf
  • размером 7,29 МБ
  • Добавлен пользователем
  • Описание отредактировано
Seki Masatoshi (translated by Inoue Makoto). The dRuby Book. Distributed and Parallel Computing with Ruby
Dallas, Texas; Raleigh, North Carolina - The Pragmatic Bookshelf - book version 1.0, March 2012 - 266 pages
Masatoshi Seki, translated by Makoto Inoue, Foreword by Yukihiro "Matz" Matsumoto.
The Facets of Ruby Series.
ISBN13: 978-1-934356-93-7
Original Japanese edition:
dRuby niyoru Bunsan Web Programming by Masatoshi Seki
Copyright 2005. Published by Ohmsha, Ltd
This English translation, revised for Ruby 1.9, is copyright 2012 Pragmatic Programmers, LLC.
Learn from legendary Japanese Ruby hacker Masatoshi Seki in this first English-language book on his own Distributed Ruby library. You’ll find out about distributed computing, advanced Ruby concepts and techniques, and the philosophy of the Ruby way—-straight from the source.
dRuby has been part of the Ruby standard library for more than a decade, yet few know the true power of the gem. Completely written in Ruby, dRuby enables you to communicate between distributed Ruby processes as if there were no boundaries between processes. This is one of the few books that covers distributed and parallel programming for Ruby developers.
The dRuby Book has been completely updated and expanded from its Japanese version, with three new chapters written by Masatoshi-san. You’ll find out about the design concepts of the dRuby library, and walk through step-by-step tutorial examples. By building various distributed applications, you’ll master distributed programming as well as advanced Ruby techniques such as multithreading, object references, garbage collection, and security. Then you’ll graduate to advanced techniques for using dRuby with Masatoshi-san’s other libraries, such as eRuby and Rinda—-the Ruby version of the Linda distributed tuplespace system. In the three new chapters, you’ll see how to integrate dRuby and eRuby, get a thorough grounding in parallel programming concepts with Rinda, and create a full text search system using Drip.
Step by step, you’ll gain mastery of dRuby and distributed computing.
What You Need:
Ruby 1.9.2 or above. All exercises were run on OS X, though it should work on any operating system. You are expected to be comfortable reading Ruby code, as we do not explain basic syntax.
Foreword
I. Introducing dRuby
Hello, dRuby
-Hello, World
-Building the Reminder Application
-Moving Ahead
Architectures of Distributed Systems
-Understanding Distributed Object Systems
-Design Principles of dRuby
-dRuby in the Real World
-Moving Ahead
II. Understanding dRuby
Integrating dRuby with eRuby
-Generating Templates with ERB
-Integrating WEBrick::CGI and ERB with dRuby
-Putting Them Together
-Adding an Error Page
-Changing Process Allocation
-Moving Ahead
Pass by Reference, Pass by Value
-Passing Objects Among Processes
-Passing by Reference Automatically
-Handling Unknown Objects with DRbUnknown
-Moving Ahead
Multithreading
-dRuby and Multithreading
-Understanding the Thread Class
-Thread-Safe Communication Using Locking, Mutex, and
MonitorMixin
-Passing Objects via Queue
-Moving Ahead
III. Process Coordination
Coordinating Processes Using Rinda
-Introducing Linda and Rinda
-How Rinda Works
-Basic Distributed Data Structures
-Toward Applications
-Moving Ahead
Extending Rinda
-Adding a Timeout in a Tuple
-Adding Notifications for New Events
-Expressing a Tuple with Hash
-Removing Tuples Safely with TupleSpaceProxy
-Finding a Service with Ring
-Examples of Ring Applications
-Moving Ahead
Parallel Computing and Persistence with Rinda
-Computing in Parallel with rinda_eval
-Concurrency in rinda_eval
-Persisting a Tuple with PTupleSpace
-Moving Ahead
Drip: A Stream-Based Storage System
-Introducing Drip
-Drip Compared to Queue
-Drip Compared to Hash
-Browsing Data with Key
-Design Goals of the API
-Moving Ahead
Building a Simple Search System with Drip
-Running the App
-Examining Each Component
-Crawling Interval and Synchronization with Indexer
-Resetting Data
-Using RBTree for Range Search
-Adding a Web UI
-Moving Ahead
IV. Running dRuby and Rinda in a Production Environment
Handling Garbage Collection
-Dealing with GC
-Using DRbIdConv to Prevent GC
-Moving Ahead
Security in dRuby
-dRuby’s Attitude Toward Security
-Accessing Remote Services via SSH Port Forwarding
-Summary
  • Чтобы скачать этот файл зарегистрируйтесь и/или войдите на сайт используя форму сверху.
  • Регистрация