I have a rails application that includes some ActiveResource services. I try to run a server with this application and make a request from one service to another. Let's say I have an action in service1_controller.rb:
def action1
Service2::Object1.find(10)
end
I get a TimeoutError, and I can understand why: the "basic" server knows to run only one thread. So I tried Puma server in order to have more than one thread enabled, but I still get the same error.
Can you figure out why?
Please let me know if the scenario is unclear and if some more information is missing, because I found it very difficult to explain the problem.