Pickle-able router

17 views
Skip to first unread message

Munir Contractor

unread,
Jun 22, 2017, 5:16:11 PM6/22/17
to Falcon Framework
Hi Falcon devs,

I made some changes to the code to make the default CompiledRouter pickle-able.
My motivation for doing this was to eventually create a SharedRouter class that can be shared across multiple gunicorn workers, using Python multiprocessing objects.
Being a pickle-able object is a prerequisite for most IPC mechanisms, and hence I had to make some changes to the code.
There is no breaking change and all the tests pass.
I have made the changes in my fork at https://github.com/munircontractor/falcon. I can submit a pull request if this functionality is something you would like to have.

Thanks,
Munir

Kurt G. | @kgriffs

unread,
Jun 28, 2017, 2:05:42 PM6/28/17
to Falcon Framework
Hi Munir, thanks for reaching out! I've moved the conversation to our new gitter community:


@kgriffs
Reply all
Reply to author
Forward
0 new messages