> On 5/23/06, Walter <[EMAIL PROTECTED]> wrote:
> [...]
> > I realize that mongrel is not thread safe, I was hoping mongrel might
> spawn a few processes and serve them in the background to emulate what I
> wanted.
> >
> 
> Rails is not thread-safe.
>

Yes, that’s what I meant.
 
<snip>

> 
> The idea of the BackgroundDrb is that you perform these task
> out-of-bound from the webserver/dispatcher/rails, so it could handle
> other request and also you could "query" the status of the bulk
> process.
> 

Yes I am familiar with it, I was just trying to avoid it for simple tasks, like 
getting a list of all invoices for a customer.  Yes this can take 6+ seconds to 
get.

> No matter how many processors you spawn (even if the -n param was
> available in win32 service)... 1 Controller call would hang the whole
> server until it return, thats why the suggestion of using
> BackgroundDRb.
> 

Ahh I see.

> If your lengthly process need parse or perform actions using the
> model, I will comment that something isn't in the right place.
> 
> Using Apache or Lighttpd will require you use FCGI, which also mean
> that you will need to "synchronize" your transactions to the DB to
> avoid corrupt data.
> 

The problem is we are using an application that is 20+ years old, and was never 
intended to be accessed via and ODBC driver (luckily we found one, it may be 
buggy but it works).  Some parts of the company need to use the original 
application, other parts we access through our own data-access system (similar 
to AR but simpler).  We currently have an internal web-application that piggy 
backs on to the original DB, but need to change some significant things (will 
add new tables), and the future plans are to rewrite it so it no longer uses 
the original DB.  This would be done subsection by subsection and converted to 
Rails, so we are starting now.  We have all of the data access working fine, 
its just some transactions are slow for a subset of the data being accessed.

The database itself is non transactional file based system.  The app is written 
in Dataflex which is/was a sort of 4GL RAD builder that had its own DB built in.
  

> > Anyone know of a simple win32 web proxy that can deal with multiple
> mongrel servers?
> 
> Couldn't find one, thats why start working on it, but still a lot of work
> to do.
> 

Very nice.



Thanks,


Walt 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006
 

_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to