1
votes

I have a rails app which calls a SOAP service inside one of my controllers. The problem is that when the user submits the page and the app sends out the SOAP request, the user ends up having to wait for the SOAP response because the Savon gem is using a blocking call for the SOAP request.

Any idea how to tell Savon to behave asynchronously or tell rails/ruby to make this method call asynchronously?

Thanks!

1

1 Answers

0
votes

To send the request asynchronously, you can send the request inside another thread.

You can read more on multithreading here