When starting up rails under tomcat, if you send requests to the app
to soon, you get random errors in rails about classes and methods not
being defined. In most cases it works itself out, but in some it
doesn’t and you have to restart the app.
My thought was to fix this at the rack layer, and have some way to
tell rack if the app is available or not, returning a 503 if not.
Does this sound right?
I’m also not 100% sure at what point rails is fully loaded. I’m
thinking after its’ run it’s last initializer?