multithreading - Spyne receiving multiple requests -
i'm looking @ spyne able make webservice handles requests in json. problem still didn't managed working more 1 request @ time.
i thought https://github.com/arskom/spyne/blob/master/examples/async.py might solve, can't seem make work get_callback_info() isn't found anywhere... know example of how handle multiple requests @ same time spyne? thanks!
you mean can't spyne concurrent? has nothing spyne, it's transport's job implement concurrency.
i assume refer examples use wsgiref, reference wsgi implementation, doesn't support concurrency. news is, spyne can , being used concurrently python daemon can be.
you can use twisted in async mode twistedwebresource
or in sync mode wsgiapplication
. can find relevant examples in examples/twisted
directory in resource.py
, wsgi.py
respectively.
if twisted scares (for reason, it's got totally baseless "not faint-hearted" kind of reputation) can use cherrypy. put cherrypy wsgi example in examples/cherry
directory.
Comments
Post a Comment