Ask a Question related to Ruby, Design and Development.
-
Hadmut Danisch #1
Apache with Ruby: Several questions
Hi,
I'd like to migrate an old Apache/PHP/Perl application to Ruby, and
I do have some question:
- PHP supports persistent MySQL connections, so it does not need
to reopen the connection for every single Web access.
Is there a way to do this in Ruby?
- Apache maintains several processes, and subsequent requests
are handled by different processes. An efficient way for
interprocess-Communication is required.
Perl has a module which allows to put a Hash into a shared
memory segment.
Does ruby support something similar?
regards
Hadmut
Hadmut Danisch Guest
-
Ruby/Tk Some Basic Questions
Hi, I'm playing with Ruby/Tk and I've got the Perl/Tk book and some other text/online documentation to go along with. I am wondering if there is... -
more ruby/tk questions
Hello, I am getting more into the GUI. I have a form where I enter some values into entries, and when pushing the Ok button I process them. ... -
2 questions about TkVariable and ruby/tk
Hi all! I have the following code snippet: ----------------------------------- .... h=Hash.new (0..4).each {|c| (0..9).each {|r| h="#{r} ;... -
embedding ruby - some questions
Dear All I am trying to embed Ruby inside an application, a GTK widget server which recieves ruby instructions to manage a Graphical User... -
Ruby CGI questions
I'm trying to make a game (or at least something, so I can learn) with Ruby CGI. I'm having a really hard time with sessions. I have some... -
Carl Youngblood #2
Re: Apache with Ruby: Several questions
The best way that I know of accomplishing all the things you just
described is Apache with Ruby and mod_fastcgi. The fcgi ruby module is
designed so that you write your script to loop over a series of HTTP
requests while everything stays in memory. This means that the database
connection you open at the beginning stays in memory and is accessible
to all of your requests and that memory sharing is just built in.
Here is a page with more information:
[url]http://www.rubygarden.org/ruby?UsingRubyFastCGI[/url]
Carl Youngblood
Hadmut Danisch wrote:> Hi,
>
> I'd like to migrate an old Apache/PHP/Perl application to Ruby, and
> I do have some question:
>
> - PHP supports persistent MySQL connections, so it does not need
> to reopen the connection for every single Web access.
>
> Is there a way to do this in Ruby?
>
>
> - Apache maintains several processes, and subsequent requests
> are handled by different processes. An efficient way for
> interprocess-Communication is required.
>
> Perl has a module which allows to put a Hash into a shared
> memory segment.
>
> Does ruby support something similar?
>
> regards
> Hadmut
>Carl Youngblood Guest



Reply With Quote

