From: "Carlo E. Prelz" Date: 2012-12-25T03:15:43+09:00 Subject: Re: Advice for simple client/server application Subject: Re: Advice for simple client/server application Date: Tue 25 Dec 12 02:20:48AM +0900 Quoting Dami??n M. Gonz??lez (lists@ruby-forum.com): > Carlo, I came from a > link(http://www.ruby-forum.com/topic/4409293#1090107) to this. Seems > that first I need to fully understand how a client-server communication > work, I've never experienced with it. Can you recomend any material to > read or something? or do you think that simply learning DRb plus trial > and error is sufficient? what will be less painfull? The amount of increased understanding is directly proportional to the amount of suffering involved ;-) My personal experience of inter-process-communications is that of: 1) talking between applications on a 300baud phone line... 2) Using SystemV IPC 3) chatting between unix sockets 4) reading a bit about CoRBA and being disgusted about that committee-smacking stuff (I still have a book somewhere: anybody wants to buy it?) 5) seeing the light with DRb. Basically, with 1-3 you just send and receive bytes: you must create and enforce your own more-or-less high-level protocols. 4 and 5 (as well as a myriad of other more or less successful solutions that I was spared), on the other hand, are object-oriented inter-process communications. CoRBA pretended to be language-independent, and an awkward crock was the result. DRb, on the other hand, is Ruby-only (and made in Japan ;-), so it is clean and straightforward. I do not have tutorials to suggest, since I generally learn by doing. But the nutshell is simple: from a process running here on my PC I can invoke the methods of an object instantiated by a process running in a toaster plugged to the internet in Waikaki, New Zealand, in a transparent way. It is *almost* as if the two processes were the same. The scope of the *almost* will only become clear to you with experience. Carlo -- * Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)