Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-51701

Formalize relationship between ingress Sessions and Clients

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Service Arch
    • Fully Compatible
    • 5

    Description

      Currently, every Client may have a Session (here). I think we should formalize this relationship:

      • We should invariant that every ingress Client has a Session and every service Client does not.
      • We should have a Client pointer in Session that is valid only if the Session is an ingress Session.

      This will make it easier to work with ingress Client instances and allow us to access decorations deeper into the transport infrastructure.

      Acceptance criteria:

      The relationship between client and session objects is clear and hard to misuse and properly encoded in the type system.

       

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: