Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2551

Make it easier to switch between sync & async drivers

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API, Async
    • None

    Description

      Currently the sync and async drivers are completely separate to each other - they use different types, different packages, even different ways of creating clients (sync uses MongoClientOptions and individual parameters, async uses ConnectionString and MongoClientSettings).

      This makes it really hard to use sync & async APIs together - if you want to do some operations sync and some async, for example.

      It should be much easier to move between sync & async APIs, given the same client, database, or collection objects (MongoDatabase.asSync()/MongoDatabase.asAsync())

      If not, at least consolidate how you create sync and async MongoClient objects so you can use the same representation of a connection & client options.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            thecoop1984 Simon Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: