[
https://issues.apache.org/jira/browse/THRIFT-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703992#action_12703992
]
Dirk Breuer commented on THRIFT-468:
------------------------------------
Michael, thanks for the feedback. Regarding your questions: Rack doesn't
technically qualifies as a server. What you that is correct so far. It is just
a web server interface abstraction (like CGI). So you always need a web server
which implements the Rack interface (which is virtually every web server in the
Ruby world), to handle the HTTP Request/Response stuff. So I think it would be
wrong to inherit from Thrift::BaseServer. Maybe than it shouldn't be located in
the server directory either, but I didn't know where to put it in the first
place. I think it would be ok to keep it there, but maybe in subdirectory. What
do you think. I agree with you when it comes to the require part. That was
simply my fault - I missed that one.
I will update the patch file and remove the 'require' statement from the
thrift.rb file.
> Rack Middleware Application for Rails
> -------------------------------------
>
> Key: THRIFT-468
> URL: https://issues.apache.org/jira/browse/THRIFT-468
> Project: Thrift
> Issue Type: New Feature
> Components: Library (Ruby)
> Reporter: Dirk Breuer
> Priority: Minor
> Attachments: rack_middleware.patch
>
>
> Thrift is a really great library and we decided to implement the majority of
> our service infrastructure for pkw.de with the help of Thrift. We already
> have some services up and running but are still experimenting how we can
> integrate it into our todays infrastructure. Since we are building and
> running a Ruby on Rails application and most of the stuff is still done in
> Ruby we needed a solution to integrate Thrift into Rails. We have some
> services build upon Thrift without Rails, but that became cumbersome as soon
> as you integrate any database connectivity. Suddenly you realize how much
> work is done by Rails itself for you concerning managing your environment.
> That said I had the idea to use the Rack integration of Rails 2.3 and build a
> custom Rack Application which intercepts all Posts to a certain URL and
> handle them through Thrift. I think this could be a really cool feature to
> integrate it into the main Thrift lib so I send you the enclosed patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.