# Ruby/Perl: tight integration

**URL:** <https://rubytalk.org/t/ruby-perl-tight-integration/1011>\
**Category:** ruby-talk\
**Created:** [5 August 2002 13:58 UTC](https://rubytalk.org/t/ruby-perl-tight-integration/1011 "2002-08-05T13:58:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjorn\_Nordbo](https://avatars.discourse-cdn.com/v4/letter/b/258eb7/32.png) [@Bjorn\_Nordbo](https://rubytalk.org/u/Bjorn_Nordbo)\
**Post date:** [5 August 2002 13:58 UTC](https://rubytalk.org/t/ruby-perl-tight-integration/1011/1 "2002-08-05T13:58:58Z")

</div>

Hello,

I’m planning to write a system consisting of a supervise process (which  
I want to write in Ruby) and several transaction processes (written in  
Perl due to library issues). I have spent some time now, looking at Rinn,  
but it doesn’t support long long and all in all, it doesn’t seem like  
something you’d use for a production system yet.

Other alternatives seems to be SOAP og XML-RPC; however I am a little  
concerned about the performance of XML based solutions; the supervise  
process needs to scale to about 80 operations/second, with bursts of  
twice that.

Does anyone have practical experience with the performance of SOAP og  
XML-RPC for Ruby? Or know of viable alternatives?

All help appreciated!

> **···**
>
> –  
> I’ve seen things you people wouldn’t believe. Attack ships on fire off  
> the shores of the Nonestic Ocean. I watched magic blunderbusses flash  
> and glitter in the dark near Glindea’s Palace. All those moments will  
> be lost in time, like tears in rain. Time to die…

---

<div class="post-metadata">

**Author:** ![Erik\_Terpstra1](https://avatars.discourse-cdn.com/v4/letter/e/ed8c4c/32.png) [@Erik\_Terpstra1](https://rubytalk.org/u/Erik_Terpstra1)\
**Post date:** [5 August 2002 14:39 UTC](https://rubytalk.org/t/ruby-perl-tight-integration/1011/2 "2002-08-05T14:39:08Z")

</div>

Maybe you should consider a REST approach:

[http://internet.conveyor.com/RESTwiki/moin.cgi/FrontPage](http://internet.conveyor.com/RESTwiki/moin.cgi/FrontPage)

> **[Yahoo | Mail, Weather, Search, Politics, News, Finance, Sports & Videos](https://www.yahoo.com/)**
>
> Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!

[http://www.xml.com/lpt/a/2002/02/06/rest.html](http://www.xml.com/lpt/a/2002/02/06/rest.html)  
[http://www.xml.com/lpt/a/2002/02/20/rest.html](http://www.xml.com/lpt/a/2002/02/20/rest.html)

It is faster, simpler and more flexible than SOAP and XML-RPC.

Cheers,

```
Erik.

```

Bjørn Nordbø wrote:

> **···**
>
> > Hello,
> > 
> > I’m planning to write a system consisting of a supervise process (which  
> > I want to write in Ruby) and several transaction processes (written in  
> > Perl due to library issues). I have spent some time now, looking at Rinn,  
> > but it doesn’t support long long and all in all, it doesn’t seem like  
> > something you’d use for a production system yet.
> > 
> > Other alternatives seems to be SOAP og XML-RPC; however I am a little  
> > concerned about the performance of XML based solutions; the supervise  
> > process needs to scale to about 80 operations/second, with bursts of  
> > twice that.
> > 
> > Does anyone have practical experience with the performance of SOAP og  
> > XML-RPC for Ruby? Or know of viable alternatives?
> > 
> > All help appreciated!

---

<div class="post-metadata">

**Author:** ![Bbense\_Comp\_Lang\_Ru4](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Bbense\_Comp\_Lang\_Ru4](https://rubytalk.org/u/Bbense_Comp_Lang_Ru4)\
**Post date:** [5 August 2002 17:39 UTC](https://rubytalk.org/t/ruby-perl-tight-integration/1011/3 "2002-08-05T17:39:19Z")

</div>

In article [Ttv39.1735$0p1.20014@news2.ulv.nextra.no](mailto:Ttv39.1735$0p1.20014@news2.ulv.nextra.no),

> Hello,
> 
> I’m planning to write a system consisting of a supervise process (which  
> I want to write in Ruby) and several transaction processes (written in  
> Perl due to library issues). I have spent some time now, looking at Rinn,  
> but it doesn’t support long long and all in all, it doesn’t seem like  
> something you’d use for a production system yet.
> 
> Other alternatives seems to be SOAP og XML-RPC; however I am a little  
> concerned about the performance of XML based solutions; the supervise  
> process needs to scale to about 80 operations/second, with bursts of  
> twice that.

- 
  - Hmm, that’s pretty hefty for any scripted server to deal with  
on a single processor. It certainly can be done, but you might  
have to write your own protocol to get this performance.

> Does anyone have practical experience with the performance of SOAP og  
> XML-RPC for Ruby? Or know of viable alternatives?

- 
  - If you’re designing your own protocol for this you might want  
to look at BEEP. It’s still XML, but has less overhead than  
either SOAP or XML-RPC. Unfortunately, the ruby implementation  
seems to be mostly vaporware at this point.

- 
  - Booker C. Bense

> **···**
>
> Bjørn Nordbø [bn@strangedays.no](mailto:bn@strangedays.no) wrote:
> 
> –

---

<div class="post-metadata">

**Author:** ![Bjorn\_Nordbo](https://avatars.discourse-cdn.com/v4/letter/b/258eb7/32.png) [@Bjorn\_Nordbo](https://rubytalk.org/u/Bjorn_Nordbo)\
**Post date:** [6 August 2002 08:00 UTC](https://rubytalk.org/t/ruby-perl-tight-integration/1011/4 "2002-08-06T08:00:41Z")

</div>

[bbense+comp.lang.ruby.Aug.05.02@telemark.stanford.edu](mailto:bbense+comp.lang.ruby.Aug.05.02@telemark.stanford.edu)

> In article [Ttv39.1735$0p1.20014@news2.ulv.nextra.no](mailto:Ttv39.1735$0p1.20014@news2.ulv.nextra.no),
> 
> > Other alternatives seems to be SOAP og XML-RPC; however I am a little  
> > concerned about the performance of XML based solutions; the supervise  
> > process needs to scale to about 80 operations/second, with bursts of  
> > twice that.
> 
> - 
> - Hmm, that’s pretty hefty for any scripted server to deal with  
> on a single processor. It certainly can be done, but you might  
> have to write your own protocol to get this performance.

Actually, I do have an option of writing a multithreaded server and  
distributing the load over several CPUs. However this would defeat  
my idea of using XML-RPC or similiar to simplify the server.

> > Does anyone have practical experience with the performance of SOAP og  
> > XML-RPC for Ruby? Or know of viable alternatives?
> 
> - 
> - If you’re designing your own protocol for this you might want  
> to look at BEEP. It’s still XML, but has less overhead than  
> either SOAP or XML-RPC. Unfortunately, the ruby implementation  
> seems to be mostly vaporware at this point.

BEEP is a new one, but without a Ruby implementation it’s pretty much  
useless. I don’t have the time or knowledge to implement a protocol  
library yet; this is my first large Ruby project.

Thanks for your answers!

> **···**
>
> > Bjørn Nordbø [bn@strangedays.no](mailto:bn@strangedays.no) wrote:
> 
> –  
> I’ve seen things you people wouldn’t believe. Attack ships on fire off  
> the shores of the Nonestic Ocean. I watched magic blunderbusses flash  
> and glitter in the dark near Glindea’s Palace. All those moments will  
> be lost in time, like tears in rain. Time to die…

---

<div class="post-metadata">

**Author:** ![Bjorn\_Nordbo](https://avatars.discourse-cdn.com/v4/letter/b/258eb7/32.png) [@Bjorn\_Nordbo](https://rubytalk.org/u/Bjorn_Nordbo)\
**Post date:** [6 August 2002 08:00 UTC](https://rubytalk.org/t/ruby-perl-tight-integration/1011/5 "2002-08-06T08:00:43Z")

</div>

Interesting; I’ll have a closer look at this. Thanks!

> **···**
>
> Erik Terpstra [erik@solidcode.net](mailto:erik@solidcode.net) wrote:
> 
> > Maybe you should consider a REST approach:
> > 
> > (…)
> > 
> > It is faster, simpler and more flexible than SOAP and XML-RPC.
> 
> –  
> I’ve seen things you people wouldn’t believe. Attack ships on fire off  
> the shores of the Nonestic Ocean. I watched magic blunderbusses flash  
> and glitter in the dark near Glindea’s Palace. All those moments will  
> be lost in time, like tears in rain. Time to die…
