开发者

SOAP calls using EventMachine

开发者 https://www.devze.com 2022-12-12 18:33 出处:网络
Is there any way to make non-blocking SOAP requests within EventMachine? I\'m creating a ruby application which interacts with the google adwords api (which is SOAP based), using the adwords4r gem.

Is there any way to make non-blocking SOAP requests within EventMachine?

I'm creating a ruby application which interacts with the google adwords api (which is SOAP based), using the adwords4r gem. The application uses EM to receive messages over a stomp connection, and then processes those messages by making SOAP calls to the adwords api. Obv开发者_C百科iously I need those calls to be non-blocking, since the processing will be within the reactor thread. One option would be to use EM.defer, but I'd rather not have the overhead of a bunch of threads in a threadpool.


HandSoap can use EventMachine.


After earning a tumbleweed badge with this question I ended up asking on the #eventmachine IRC. Apparently there is no eventmachine-friendly options for making SOAP calls, besides using EM.defer

0

精彩评论

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