Using Thrift with Rails is not rocket science. You shouldn't really have any serious issues. You can use persistent connections easily as well - just don't create new Clients every time. You may need to keep your cached client in a global constant or a static method of a class, though.

On Aug 2, 2009, at 8:50 PM, Matthew Rushton wrote:

Hi,
I'm very new to thrift. I've been playing with it for a bit now and had a few questions I just couldn't seem to find answers to. I'm looking at integrating thrift into a rails app (to talk to an ejabberd server) and this seems easy enough. I was however a bit surprised to see almost no one using thrift with rails? Am I mistaken? If not is there a reason for this? One problem that would seem to be an issue would be the ability to use persistent tcp conections from Rails. Has anyone attempted this? Further I'd be curious to know if the php bindings enable persistent connections or if each request results in a new tcp connection. I just want to make sure I'm using Thrift in the most efficient way. Thanks!
-Matt




Reply via email to