CursosPago

MongoDB with Async Python

07:19:54 Inglés Premium 26/04/2024 111 videos

Descripción del curso

This course will teach you how to use MongoDB and document databases to build simpler and faster data-driven applications.

We start by explaining the origin and major concepts of NoSQL and document databases. You then learn how to work with MongoDB from its native shell as well as many of the CLI and GUI management tools.

Many MongoDB courses stop there. This course is meant to be a practical end-to-end coverage of MongoDB. We go beyond scratching the surface by covering real-world topics.

You'll see how to use Beanie (a popular ODM for MongoDB - think ORM for NoSQL) to map classes to MongoDB. Beanie is based on state-of-the-art Python technologies such as Pydantic and Python's async and await.

In this code-based and hands-on, demo-driven course, we will build some simple example apps using Beanie. Then we'll move on to modeling real PyPI data with 100,000s of records in MongoDB. Once we have our Python code working with the PyPI data, we'll build out a full FastAPI API around the data showing the smooth integration of Beanie and async MongoDB within FastAPI.

After we master working with MongoDB from Python, we'll turn our attention to performance. We take a large database with millions of data points and make it run hundreds of times faster than you get out-of-the-box with MongoDB. We test our performance changes with both custom Python code and the Locust load testing framework.

We wrap up the course by deploying MongoDB to production Linux servers. There are a few very important steps to getting MongoDB running in production and we'll go step-by-step through this setup.

In the end, you'll be ready to start building and running high-performance, MongoDB-backed, data-driven applications.

In this course, you will:
  • How document databases, such as MongoDB, work
  • Where MongoDB fits in the larger scope of databases used in the world
  • How to install and configure MongoDB and several management tools and GUIs
  • A basic set of MongoDB's native shell commands and queries
  • Foundational technologies such as Pydantic and Python's async and await
  • How to design data models with Beanie and Pydantic
  • Understand the tradeoffs when modeling data with documents
  • Learn when it's a good idea (and when it's a bad one) to embed data within other records
  • Use ORM-style programming with MongoDB and Beanie
  • Use more efficient "in-place" operations such as addToSet with Beanie
  • Design projection classes in Pydantic for improved performance
  • How to safely store user accounts (namely passwords) in MongoDB
  • To deeply integrate Beanie and MongoDB with FastAPI
  • Create complex indexes in MongoDB from Beanie for 1000x performance boosts
  • Use indexes to enforce data integrity in MongoDB
  • Safely deploy MongoDB in a self-hosted environment within a cloud provider on multiple Linux machines
  • Use the load testing framework Locust to probe and test the performance limits of your MongoDB-based web APIs
  • And lots more

Curriculum

Section 1: Module 1

  • 02 - Introducing the Course 00:54
  • 03 - MongoDB is Loved 03:06
  • 04 - MongoDB is fast 03:44
  • 05 - Python's asyncio 02:41
  • 06 - What is Beanie and What is an ODM? 04:28
  • 07 - Course Topics 03:44
  • 08 - Meet Your Instructor: Michael Kennedy 01:15
  • 09 - Setup Introduction 02:23
  • 10 - Installing MongoDB 02:14
  • 11 - Studio 3T GUI 01:16
  • 12 - Importing PyPI Data 02:35
  • 13 - Verifying the Data with Studio 3T 02:30
  • 14 - Document Dbs introduction 01:04
  • 15 - How Document Databases Work 03:27
  • 16 - Who uses MongoDB? 03:01
  • 17 - Mongo Shell 02:13
  • 18 - A More Complex Query 01:34
  • 19 - And Operators in Queries 01:09
  • 20 - Querying Embedded Data 01:41
  • 21 - Studio 3T: A Better Shell 02:04
  • 22 - Query Operators 02:55
  • 23 - Queries: Logical Operators 00:50
  • 24 - Queries: Projections 04:24
  • 25 - Pydantic Introduction 00:49
  • 26 - A Time of Change for Pydantic 02:12
  • 27 - Get the Plugins 01:03
  • 28 - Built on Pydantic 04:01
  • 29 - Project Setup 05:11
  • 30 - Our First Pydantic Model 06:20
  • 31 - JSON to Pydantic Converter 05:36
  • 32 - Get the Full Story on Pydantic 00:56
  • 33 - Pydantic has a Solid Foundation 01:19
  • 34 - Async introduction 01:24
  • 35 - Async for Speed 04:07
  • 36 - Async for Scalability 01:02
  • 37 - Synchronous Execution Example 04:02
  • 38 - Asynchronous Execution Example 02:21
  • 39 - Skeleton async Program 08:27
  • 40 - Full Concurrency Weather Client 07:49
  • 41 - Beanie Quickstart Intro 00:45
  • 42 - Motor, MongoDB's Async Driver 01:49
  • 43 - Beanie Quickstart: Part 1 Classes 12:23
  • 44 - Beanie Quickstart: Part 2 Connections 10:43
  • 45 - Beanie Quickstart: Part 3 Inserts 04:02
  • 46 - Beanie Quickstart: Part 4 Queries 08:43
  • 47 - Beanie Quickstart: part 5 settings 05:29
  • 48 - Lightning Review of Beanie 03:13
  • 49 - Get the Full Story of Beanie 00:41
  • 50 - Bunnet, the Synchronous Beanie 01:16
  • 51 - Modeling Introduction 00:58
  • 52 - Modeling: Relational vs. Documents 03:28
  • 53 - To Embed or not to Embed? 05:12
  • 54 - What is an Integration Database? 03:12
  • 55 - Looking for More Guidance? 00:40
  • 56 - PyPI Api Introduction 00:47
  • 57 - Recall: Importing the Data 01:03
  • 58 - Review: The Data Model 05:15
  • 59 - Creating the DB Models 08:35
  • 60 - Configuring Collections from Beanie 02:47
  • 61 - Connecting to MongoDB 04:52
  • 62 - CLI Skeleton 04:39
  • 63 - ClI REPL 01:40
  • 64 - Summary Stats 05:30
  • 65 - Recent Packages 05:05
  • 66 - Finding Packages and Releases 10:14
  • 67 - Creating a Release 07:01
  • 68 - Concurrency Safe Create Release 11:03
  • 69 - Creating Users 05:27
  • 70 - Setting the User's Password 06:45
  • 71 - FastAPI Introduction 01:24
  • 72 - FastAPI Skeleton App 06:10
  • 73 - API Endpoints Ready 08:11
  • 74 - Package Details Implementation 12:07
  • 75 - Sometimes API focused models are required 08:36
  • 76 - Stats API 03:36
  • 77 - The Home Page Doesn't Belong in the API Docs 02:01
  • 78 - Static Files: CSS 10:42
  • 79 - Introduction to DB Performance 00:48
  • 80 - Levers and Knobs of MongoDB Performance 04:38
  • 81 - Creating Indexes in the Shell 02:22
  • 82 - Our First Python to MongoDB Index 08:49
  • 83 - Releases Counted in 1ms 06:40
  • 84 - Uniqueness Index for Users 03:48
  • 85 - Projections for Packages 09:08
  • 86 - Concept: Projections in Beanie 01:11
  • 87 - Document Design from a Performance Perspective 03:52
  • 88 - Hosting Introduction 01:14
  • 89 - Don't Do What These Companies Did with MongoDB 02:09
  • 90 - MongoDB as a Service Options 02:05
  • 91 - MongoDB's Security Checklist 02:12
  • 92 - Getting the Server Ready 03:13
  • 93 - Limit Network Access with VPCs and Firewall 05:36
  • 94 - Creating an Encryption Key 01:18
  • 95 - Installing MongoDB 03:45
  • 96 - Configuring MongoDB, Part 1 04:40
  • 97 - Adding Authentication to MongoDB 04:40
  • 98 - Connecting to Production MongoDB with Python 05:44
  • 99 - Importing Data Introduction for Production MongoDB 03:06
  • 100 - Connecting to a Remote MongoDB 06:25
  • 101 - Testing our Python Code in Production 06:26
  • 102 - Final Comments on Speed 01:51
  • 103 - Load Testing Introduction 01:08
  • 104 - Introducing Locust 04:21
  • 105 - Consider a Real Server Topology 01:13
  • 106 - Running Locust for Max RPS 10:57
  • 107 - Running Locust for Max Users 09:05
  • 108 - Faster Locust Tests 01:10
  • 109 - Finish Line! 00:42
  • 110 - Git the Source Code, Again 00:30
  • 111 - Final Review 06:11
  • 112 - Stay in Touch 01:02

About the Instructor

Instructor

Talkpython

Course

$0.00

$8.00
Que esta incluido?
  • Streaming Multiplataforma
  • Acceso de por vida
  • Soporte al cliente
  • Actualizaciones gratuitas