A Deep Dive into the Pymongo MongoDB Driver
Offered By: EuroPython Conference via YouTube
Course Description
Overview
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
Related Courses
Datenmanagement mit SQLopenHPI Programming Cloud Services for Android Handheld Systems
Vanderbilt University via Coursera Getting and Cleaning Data
Johns Hopkins University via Coursera Ruby مدخل إلى برمجة مواقع الإنترنت باستخدام لغة
Rwaq (رواق) MongoDB for .NET Developers
MongoDB University