From: "NAKAMURA, Hiroshi" Date: 2004-01-16T11:55:34+09:00 Subject: Re: Quick Input -- Sockets vs. HTTP Hi, > From: "dhtapp" > Newsgroups: comp.lang.ruby > Sent: Friday, January 16, 2004 7:31 AM > But I also find myself wondering if it wouldn't be possible to occasionally > pass Java objects across the wire and have them stored in the Ruby pstore > (using, I guess, some magic with Array#pack...?) > > So, to anyone with more network programming experience in both Ruby and > Java, my question is: if you were in my position, which approach would you > take? Or, maybe more appropriately, what kinds of questions should I be > asking myself to help make the determination? * Security requirements * App level authentication needed? * Are there 3 or more participants in the security domain? * Transaction * Need 2-phase commit? Oh, ignore this. I just want to say. :-) * 2 or more communication can be organized? * Error status transfer? * Required reliability? * Bulk data transfer (independent 2 or 3 msgs at once) needed? * Data type * Includes binary data? * Data complexity? * Extensibility? * Required language binding? Only Ruby/Java? And extensibility in the future. You might not have to think about it (YAGNI). For example, I choose followings for my company projects; * CORBA between C++/Java * CSV over HTTP between C++/PSQL * XML over HTTPS between C++/(I don't know) * SOAP over COM between JScript/C++ * XML over e-mail between Java/(I don't know) * SOAP over HTTPS between Ruby/Perl/Java Regards, // NaHi