Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2194

Provide forking guidance relevant to the driver

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.13.1
    • Affects Version/s: None
    • Component/s: Docs
    • None
    • Fully Compatible

      The forking guidance in the driver is essentially copy-pasted from Mongoid, but this does not address use cases where the developer would use the driver directly instead of Mongoid. For example, in https://jira.mongodb.org/browse/RUBY-2167 the following use case is provided:

      > A pretty straght forward and concise use case would be to use mongo for logging. A parent application might fork subprocesses, all of which communicate back to mongo to store their log messages.

      When the driver is used directly, the recommendation should be to create new Client instances in each process instead of reusing and reconnecting existing Client instances as Mongoid applications tend to do.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: