开发者

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

开发者 https://www.devze.com 2023-03-15 01:31 出处:网络
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 ?).

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

精彩评论

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