I need to run many concurrent Gremlin queries using asyncio (gather). Under load I’m seeing unstable behavior (timeouts / hanging tasks / connection issues), and I’m not sure what the recommended concurrency pattern is.
What’s the best practice for high-throughput async workloads with gremlinpython 3.7 on Python 3.11?
• Single shared client/connection + asyncio.Semaphore to cap concurrency?
• Connection pool (one connection per worker/task)?
• Or treat gremlinpython as blocking I/O and offload with asyncio.to_thread + strict concurrency limits?
If there are known limitations with Python 3.11 + gremlinpython 3.7 async usage, or a reference snippet for the “correct” pattern, I’d really appreciate it.