I am trying to use Falcon web framework with async workers like gevents and asyncio. I have been looking around for tutorials, but I haven't been able to find any which combine implementation of gevent with falcon. Since I have never used gevents before, I am not sure how to go around testing this combination. Can someone guide me to an example or a tutorial?
Thank you! :)
I was just looking to build a new website with Falcon and gevent, something I had done in the past. I knew that there was something odd about it, so I searched online and found your question. I'm somewhat surprised no one has responded yet. So, I went back to have a look at my earlier code and the following is the basic skeleton to get up and running with Falcon and gevent (which makes for a very fast framework):
As you can see, the big trick is in the monkey-patching. Other than that, it really is quite straightforward. Hope this helps someone!