Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-344

Asynchronous (event driven) Driver

    XMLWordPrintable

Details

    Description

      The biggest drawback in the client driver currently is that all the API functions are blocking.

      Being able to pass a callback function to functions such as getLastError will not only lead to better design, but also a huge performance and concurrency increase.

      The low level sockets are as far as I can deduce already asynchronous. It should be possible to build from that into an asynchronous event driven driver.

      Since boost is already employed I recommend looking at asio and bind.

      Attachments

        Issue Links

          Activity

            People

              david.golden@mongodb.com David Golden
              pieterwjordaanpc@gmail.com Pieter Jordaan
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: