Going Serverless with MongoDB Stitch

Hey guys, it’s quite some time I posted anything. So instead of going into concepts I would love to introduce many new tech stacks I have explored in previous some months. We’ll be back with the concepts again..!

Let’s get started with the first tech stack I am going to introduce to you guys (also one of my most favourite) –

MongoDB Atlas and Stitch

When I tell people about MongoDB they keep telling me it’s just a NoSQL Database. Is it? Nope. It used to be just a NoSQL database, but the correct term is –

MongoDB is a flexible database which allows users flexibility in schema from a total heterogeneous datastore to an absolutely homogenous datastore.

People are actually quite outdated with the functionalities MongoDB provide in the newer versions, the support, reliability, customisation and speed MongoDB gives in comparison with original RDBMS and the use cases for which MongoDB is built and could be used.

MongoDB has now also built an entire Database As A Service kind of ecosystem cloud solution known as MongoDB Atlas.

MongoDB Atlas is the fully managed cloud database as a service by MongoDB itself, providing the Best of MongoDB, the best support for the newer versions along with the latest support of DevOps and Development into one single Cloud EcoSystem. But what extra? Just read along and you’ll be amazed…

MongoDB Stitch

MongoDB Stitch is the Serverless platform offered by MongoDB which is fully integrated with the MongoDB Atlas cluster. So what is extra special about this Stitch? Why not use AWS Lambda instead?

MongoDB Stitch is built with the aim of “Backend as a service” concept, integrating many different serverless functions and services into single Entity, whereas a Lambda Function is just a single script to execute any ad-hoc tasks.

Some key features it provides, along with full integration to your MongoDB Database Cluster –

  • You can integrate it directly from your frontend or you could abstract it into a backend service or even abstract it on the Stitch App level giving the developers full control of their application design.
  • Stitch Triggers – They are automatic triggers you can build and execute a function/script when any trigger fires. It supports 3 types of triggers – authentication triggers, database triggers and scheduled triggers, giving the support to make your application event driven application without explicitly configuring MongoDB’s database level event handlers.
  • Rules – Access rules, database rules, views, query optimization rules, etc can be configured directly without explicitly managing these configuration or projection stages in each request. Of course you can still do it manually, MongoDB does not restrict you.
  • Easy implementable SDK’s in many languages. Don’t see python listed? Don’t worry, they have got built in Wire Protocol in existing packages. You don’t even need to change your code to switch to Stitch.
  • They even provide integrations to Google Cloud, Facebook Services, almost the full AWS suite and even more.

There are lot’s more and I can go on and on, but let’s learn to build one simple 10 min application and then continue with the in depth exploration. Right? We’ll be back with the tutorial in another post quite soon.

Just like, subscribe and share to stay updated with the new posts..!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: