This document discusses dRuby and its use for distributed and web-based programming. Some key points include:
- dRuby allows Ruby objects and code to be distributed across multiple processes and computers in a simple way without limitations of Ruby.
- It can be used for background processing in Rails applications, building distributed services like fax transmission programs, and more.
- Techniques like Rinda tuple spaces can be used for distributed processing with dRuby. Overall, dRuby enables creating distributed applications and services in an easy way using the Ruby language.
5. デモ「メモアプリ」
• どれぐらい簡単かメモアプリでみてみる
サーバのコード
require 'drb/drb'
class Memo
def initialize
@item = []
end
def add(str)
p str
@item.push(str)
end
def list
@item
end
end
5