Skip to content

rlondner/mongodb-3.6-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB 3.6 Developer Workshop (New Features)

This workshop focuses exclusively on some of the new features of MongoDB 3.6 and requires pre-existing knowledge of MongoDB, particularly the Mongo Shell.

Familiarity with JavaScript and Node.js is also strongly recommended as most code samples will use that programming language.

Setup requirements

Hopefully, you have brought your own laptop… If not, find a peer whom you can work with!

Make sure the following components are installed on your laptop:

If you are using Windows 10, you will have to use the Windows Subsystem for Linux as the provided scripts were built on MacOS (they should work on Linux)

Change Streams Labs

Change Streams are a new 3.6 feature that allows applications to listen to changes in a MongoDB collection in real time. The feature is built on top of the oplog infrastructure, which is primarily used to handle replication between a primary and secondaries. "Tailing with the oplog" was previously the approach MongoDB recommended to implement such a real-time trigger functionality, but it came with many caveats and was never considered a fully reliable technique.

With Change Streams, you now get a fully supported, reliable, durable and secure way of achieving real-time processing of changes (inserts, updates, deletes, as well as replace and invalidate operations).

But enough with marketing spins, let’s get started with technical content. We’ll embark into the following journey to discover Change Streams:

JSON Schema Validation Labs

With MongoDB 3.6, you now can enforce schemas on specific collections using the JSON Schema draft IETF specification (note: MongoDB 3.6 currently supports a subset of the JSON Schema draft 5 spec).

To know more about the technical features of MongoDB’s JSON Schema Validation support:

  • Take the hands-on labs available here.

  • Discover how to use JSON Schema with the Expressive Query Syntax here and replicate the examples mentioned there.

Granular Array Updates Lab

  • The granular array updates lab is available here.

About

MongoDB 3.6 Developer Workshop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published