Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4725

Async client should use tasks for SDAM instead of threads

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: async
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Async client should use tasks for SDAM (and other background tasks) instead of threads. Python's standard library doesn't really support using threads and asyncio together so we shouldn't try to fight an uphill battle. For example, asyncio streams can't be shared across io loops and we learned in PYTHON-4648 that regular sockets can't always be shared across io loops either.

            Assignee:
            iris.ho@mongodb.com Iris Ho
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: