Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

A Deep Dive into the Pymongo MongoDB Driver

EuroPython Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive deep into the Pymongo MongoDB driver in this 53-minute conference talk from EuroPython 2016. Explore the inner workings of one of MongoDB's most popular driver interfaces, gaining valuable insights into how the driver constructs server requests and responds. Learn to write more effective MongoDB applications in Python by understanding initial connections, queries, simple and bulk write operations, and node failure responses. Examine the driver's approach to server selection when connecting to replica sets, and discover how to handle primary failures, elections, and recovery in replica set configurations. Investigate client-side views, topology, insert blocking, ismaster responses, and retry mechanisms. Gain practical knowledge about connection timeouts and configuration options to optimize your MongoDB applications.

Syllabus

Intro
MongoDB
Drivers and Frameworks
BSON Side Bar
Single Server
Replica Set Primary Failure
Replica Set Election
Replica Set New Primary
Replica Set Recovery
Sharded Cluster
Driver Responsibilities Driver
Example API Calls
Start MongoClient
Client Side View
Topology
Insert Will Block
ismaster response from Host 1
Later Host 3 Responds
Steady State
Life Intervenes
Monitor may not detect
So Retry
Check for Primary
Host 2 Is Primary
What Does This Mean? - Connect
What Does This Mean? - Queries
What Does This Mean? - Inserts
What Does This Mean? - Updates
Configuration
connectTimeoutMS
More Reading

Taught by

EuroPython Conference

Reviews

Start your review of A Deep Dive into the Pymongo MongoDB Driver

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.