Writing ruby web-service. What architecture should I use? Rack, Rails-engine?
I need to write web-service that will get files over http and convert them. This service in future might be included in rails application. I wonder what I need to use for that? Mount as Rack-middleware? Sinatra app? Write Rails-engin开发者_C百科e? Simple ruby script with networking? Anything else? Thanks
If you may eventually incorporate it in a rails app, then I would use rails to get the service up and running. The framework provided by rails makes creating web services very easy (sometimes with as little as a line or two of code).
精彩评论