Apache with Ruby: Several questions

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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. ...
    3. 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} ;...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139