Closed kv-gits closed 2 years ago
Hi,
Yes, take a look at: https://vaex.io/docs/example_async.html if you start an asyncio event loop in the main thread, and await a vaex tasks, your main thread will handle other asyncio tasks, all vaex parts will execute in other threads. No need to start a server, although it does would work fine with e.g. starlette/fastapi.
Does that answer you question?
Regards,
Maarten
Comparing with dask (https://examples.dask.org/applications/async-web-server.html) is it possible in Vaex to mix cpu bound tasks and io bound tasks asyncronously (python asyncio module) with usage of all available cpu cores? Do I need create vaex server or just use futures is ok?