Coder Social home page Coder Social logo

mongodb-3.6-workshop's Introduction

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.

mongodb-3.6-workshop's People

Contributors

vkarpov15 avatar

Watchers

Jensen Lin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.