4 ms·
I normally use Tornado or Flask, as many many developers we live at a higher layer in the OSI layer, what would be a good starting point to plugin my app to a n
by spicyramen 6y ago
I normally use Tornado or Flask, as many many developers we live at a higher layer in the OSI layer, what would be a good starting point to plugin my app to a new TCP stack, Specifically for example a Jupyter Notebook.
- airocker 6y agoYou mean write your app as a Jupiter notebook app?
- GoOnThenDoTell 6y agoYou don’t need to worry about TCP then
- nicolaslem 6y agoYou can probably find a user space TCP implementation that you can use with LD_PRELOAD. In this case you wouldn't need to do anything to make your app use it. If instead you want a networking stack written in Python, for WSGI based frameworks like Flask it is enough to write a WSGI server that instead of using the `socket` module uses your custom stack. It will be compatible with the vast majority of Python web apps thanks to WSGI. That being said it's very unlikely that you will notice any performance improvement. In the case of a networking stack written in Python it would even be way worse than the kernel implementation.