slides/mongodb/logical-sessions.xml
Logical Sessions
20/34
Causal Consitency
Do Not Try This At Home
  • • Sessions maintain cluster-wide state about the user and their operations
  • • In earlier versions of MongoDB, state was tied to connection objects
  • • Sessions live throughout a cluster and are not tied to connection objects
  • • Sessions can be created and used as an explicit option for database operations
  • • Group operations by passing the same session (e.g. causal consistency)
  • • By default, drivers will use an implicit session for single operations