kytos-ng / kytos

Kytos SDN Platform. Kytos is designed to be easy to install, use, develop and share Network Apps (NApps).
https://kytos-ng.github.io/
MIT License
3 stars 7 forks source link

Eventually provide `asyncio` version of `mongo_client` #461

Open viniarck opened 7 months ago

viniarck commented 7 months ago

MongoDB has an official asyncio client - motor, and pymongo is the last major blocking driver we have, once we can also provide an asyncio client version this will unlock that NApps can leverage it on async @alisten_to handlers and async def decorated @rest endpoints.

motor asyncio implementation is just a wrapper around pymongo with a ThreadPoolExecutor acting as a compatibility layer, so it's not using fully async funcs all the way down, so before using this lib let's also benchmark and research more about it.

Fore more info: