开发者

Integrating a Thrift ruby server and a Ruby on Rails web app

In my free time, I'm currently working on a web app written with Rails, and planning on writing "thick" clients for the desktop and various mobile platforms (who doesn't ?).

I like the concept of Thrift for its multi-language support,开发者_StackOverflow社区 and the concept of having one IDL file generating appropriate code for clients (DRY !)

I was wondering what would be the best way / architecture to integrate the Thrift server and Rails.

The only options that come to mind seems sup-optimal :

  • call the wepapp APIs from the Thrift server to return data to the thick clients
  • plug the thrift server to the DB of the Rails app and do its thing.

For obvious reasons, this seems overkill, redundant and not flexible.

Any suggestion ?

thanks !


I'm not sure if its overkill :) But I suggest if you want to explore this topic even more that you also look into this thread.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜