✅ Sign-up for a free cluster at: mdb.link/free-bdS03tgD2QQ
✅ Get help on our Community Forums: mdb.link/community-bdS03tgD2QQ
In part three of this quick start tutorial for developers, Lauren Schaefer explains how to create ACID (atomicity, consistency, isolation, durability) transactions for MongoDB in a Node.js script. She explains how to use withTransaction() and a session to successfully complete or abort a transaction.
Chapters:
00:00 Intro
01:06 ACID transactions in MongoDB
04:06 The Setup
05:19 Create a Transaction
05:43 Create a Helper Function
07:50 Create a Function for the Transaction
17:59 Call the Function
20:54 Wrapping Up
Other videos in this tutorial series:
Part 1: • MongoDB & Node.js: Con...
Part 2: • MongoDB & Node.js: Agg...
Links Lauren mentions in the video:
Lauren's blog post: How to Use MongoDB Transactions in Node.js developer.mongodb.com/quickst...
Lauren's GitHub repo with the code from this video github.com/mongodb-developer/...
Lauren's script to create a "users" collection github.com/mongodb-developer/...
Node.js & MongoDB Starter Template File github.com/mongodb-developer/...
MongoDB Documentation: Convert a Standalone to a Replica Set docs.mongodb.com/manual/tutor...
Connect with Lauren:
Twitter: / lauren_schaefer
TikTok: / lauren_schaefer
Linkedin: / laurenjan...
MongoDB Community: developer.mongodb.com/communi...
Subscribe to MongoDB ►►► bit.ly/3bpg1Z1
Connect with MongoDB:
Website: bit.ly/2LjtNBZ
Twitter: bit.ly/3fH87gR
Facebook: bit.ly/3fEaIsd
Linkedin: bit.ly/2SY9w90
Instagram: bit.ly/3bn9bDv
Community Forums: bit.ly/2I8VCi5
TikTok: bit.ly/3fHoqdJ
Негізгі бет Ғылым және технология MongoDB & Node.js: Create an ACID Transaction (Part 3 of 4)
Пікірлер: 32