Let’s learn about Mongodb via these 114 free blog posts. They are ordered by HackerNoon reader engagement data. Visit the Learn Repo or LearnRepo.com to find the most read blog posts about any technology.
MongoDB is a popular NoSQL document database. It matters because its flexible document model allows for rapid development and handling of large volumes of unstructured data, making it ideal for modern web applications and scalable data storage.
1. Building a MongoDB NoSQL E-Commerce Data Model

MongoDB supports ACID transactions, and its cloud offering is PCI DSS compliant. It’s one of the best NoSQL options for e-commerce.
2. Mastering MongoDB – Introducing multi-document transactions in v4.0

Photo by Madison Grooms on Unsplash
3. How to Erase Expired Docs Automatically with MongoDB (TTL index)

Recently I needed to delete some documents that I saved in MongoDB after some time. I can think of a few examples of why we would want to delete data after some time:
4. How to Build A Well Structured 3-tier Architecture (MERN Stack - ES6) [Step-by-Step Guide]

This project serves as a guide/template for a 3-tier architecture. If you are entirely new to Web Development. I highly suggest you watch this video first.
5. Simple Steps to Optimize Your App Performance with MongoDB, Redis, and Node.js

Here at <a href=”https://getstream.io” target=”_blank”>Stream</a>, we power activity feeds for 300+ million end users and love playing around with ways to utilize our product in all sorts of use cases. Most recently, we built Winds, <a href=”https://getstream.io/winds/” target=”_blank”>an open-source RSS and Podcast</a> application with a strong focus on UI and UX.
6. MongoDB and Docker-Compose: How to Enable a Custom User and Password Automatically

How can we create a custom user and password to access MongoDB when using docker-compose? Let’s see how.
7. Why I Built a MongoDB-Powered Message Queue

Reinventing the wheel: a message queue system with MongoDB
8. A Complete Guide to Laravel Sail

This post is about what to expect from Laravel Sail, how it works and how to make the most of it; it is also a plea to developers to break away from it.
9. How to Reset Password with Node.js and Angular [Part 1]

There are lots of tutorials about user authentication but all of them are just covering the topics like how to sign up and how to sign in. Even if you find a tutorial about reset password then you will see that it covers old school method without APIs and using jQuery based front-end. In this tutorial, we are going to use a Node.js based API which will connect to Angular front-end. Let’s get started:
10. How To Link Mongoose And Typescript for a Single Source of Truth

Without external tools
11. One-Time Password Generation Using speakeasy, Nest.js And MongoDB

Here, we have designed and developed a flow for OTP(One time password) for user registration and also blocking a user’s account after the maximum retries for incorrect otp is exceeded.
12. PostgreSQL vs. MongoDB: Evaluating Database Structure, Speed, and More

Choosing a database can be scary as it’s nearly impossible to change once you’ve built on one. So which will you choose? PostgreSQL or MongoDB?
13. Real Time Data Processing: Easily Processing 10 Million Messages With Golang, Kafka and MongoDB

How fast Golang can be for processing a high number of messages coming from a Kafka topic?
14. Learning the basics of MongoDB by Writing a User Registration API

Learning MongoDB has been one of the things in my checklist for the past 6 months but hasn’t gotten around actually learning it until now. In order to understand writing queries and all I figured it’ll be better to make something instead of just reading and watching some tutorials. So, I’ve decided to make a user registration API i.e, a simple registration form kinda thing with only sign up and sign in functions as of now. As learning Mongo was the main intention, I’ve decided just to make the core app which is the backend functionality and no front end as it’s not necessary and I hate to do it.
15. MongoDB: Exploring Data Visualization Tools and Techniques

Looking for MongoDB data visualization tool? There are plenty of options but firstly its better to explore what kinds of solutions there are on the market.
16. How to Back Up and Restore a MongoDB Database

MongoDB. Seven Ways to Back Up and Restore Data
17. Building User Service With GRPC, Node.JS, and MongoDB: The Complete Microservice Tutorial — [Part 2]

Microservices are about decoupling your system. In a monolith, you build all the components of the software in one large codebase and deploy the software at once. But in the microservice world, we build each component of a large system decoupled from each other.
18. Creating a Object Storage System from scratch

I was very much interested in developing distributed systems and the like. But it was very difficult to find related beginner articles. One of my projects was a cloud drive. In order to implement that, i had to go many places i haven’t. It had a good steep learning curve. I wanted to share that knowledge.
19. Discord Went From MongoDB to Cassandra Then ScyllaDB – Why?

So, I’m going to summarize the above blog post for you because I had to read it several times to grasp everything. So, what exactly are MongoDB and Cassandra?
20. Enabling Virtuals In Mongoose Lean Mode (in a FeathersJs service)

Originally published at melvinkoh.me
21. Using C# To Update MongoDB Documents

See code examples for how to update MongoDB documents in C#. This article covers the basics of different methods you can use to update records.
22. Uploading a 1 Million Row CSV File to the Backend in 10 Seconds

Uploading 1 million row size large CSV to mongoDB using nodejs stream
23. A Guide to Using MongoDB Database in a ASP NET Core Web API Application

When you think about database providers for ASP NET Core apps, you probably think about Entity Framework Core (EF Core), which handles interacting with SQL databases. But what about the NoSQL options? A popular option for NoSQL is MongoDB. So in this article we’re going to learn how to create a simple ASP NET Core CRUD API using MongoDB as the database provider.
24. I made AWS Lose Money – Here’s How!

This is a short series that I wanted to share for a long time about the basics of “Cost Optimization” on AWS.
25. Efficient Server Side Pagination using Mongodb

How to implement server-side pagination in MongoDB using aggregation pipeline instead of client-side pagination and why you should do it server-side instead.
26. 2019 Database Trends – SQL vs. NoSQL, Top Databases, Single vs. Multiple Database Use

Wondering which databases are trending in 2019? We asked hundreds of developers, engineers, software architects, dev teams, and IT leaders at DeveloperWeek to discover the current NoSQL vs. SQL usage, most popular databases, important metrics to track, and their most time-consuming database management tasks. Get the latest insights on MySQL, MongoDB, PostgreSQL, Redis, and many others to see which database management systems are most favored this year.
27. Which Database Is Right For You? HarperDB vs. MongoDB vs. PostgreSQL

The purpose of this article is not to determine which database is the best but to help determine which is a fit for your specific project.
28. Get Started Building your First MERN Application – Step by Step

I am sure that when you first begin learning full-stack web development using the MERN stack, you will have questions.
29. Advanced and Efficient MongoDB Pagination

How to make clean pagination with no additional dependencies. Basically for Node.js but can be used in any other languages and platforms.
30. Basic Guide To Building Microservices With MongoDB, NodeJs, And Express

Most of us have gone through tough times where you have a large scale application which has a bunch of features, API integrations, database connections, etc. New features and updates get released, and of course you need to fix the bugs and maintain the code.
31. Instant GraphQL + MongoDB Backend With Mongoke

Implementing a good GraphQL backend to serve your database data is not an easy task, you have to implement a lot of resolvers, add authorization, pagination of the fields and use a DataLoader to not repeat your database queries during relations.
32. Best Tools For Building Your First MERN Application

Top tools to use when building your next awesome web application using the MERN stack
33. Using MariaDB as a MongoDB NoSQL Database

Using an intelligent database proxy, we’ll demonstrate how you can perform complex SQL joins between a MariaDB and a MongoDB database.
34. When Should You Use a Cache With MongoDB?

Enterprises and customers are spread worldwide, with everyone wanting to work with the same data. MongoDB stores your data in an efficient and structured way.
35. Deploying a Scalable and Secure Node.js REST API with MongoDB on Aptible

Learn to deploy a secure Node.js REST API with MongoDB on Aptible. Build scalable web apps with robust security.
36. Optimize Data Migration in MongoDB: Resharding Techniques for Speed and Scalability

Distribute a MongoDB collection fast, “reshard-to-shard” distributes data quicker than others methods, spreading your workload across multiple shards in hours.
37. Handling ORM-Free Data Access Layer in TypeScript With MongoDB

In this article, we’re going to discuss an alternative approach to handling data access layer in TypeScript with MongoDB, without using ORM.
38. Let’s Make An API And Sell It

APIs are in high demand. Making an API that companies want to use would be even better if you could sell it, too. This is how to do it with every step inside.
39. Simplify File Management in Node.js With Sanity CMS: A Step-by-Step Guide for Easy CRUD Operations

Guys, today we’ll be learning how to integrate Sanity CMS into our Node.js application, and we will in this guide, we will explore how to handle file uploads.
40. How to Create a Serverless API Using Azure Cosmos DB

In this tutorial, we’ll build a Web API using Azure Functions that stores data in Azure Cosmos DB with MongoDB API in C#
41. Building a REST API in Go with MongoDB Integration: A Step-by-Step Guide

Code or Write a REST API with GO internal libraries and MongoDB as database
42. Finding Bottlenecks in MongoDB: JMeter Profiling and Load Testing Strategies

Learn how to use JMeter to load test an e-commerce application and MongoDB Profiler to find slow queries.
43. MongoDB 101: A Free Course By Academy 3T

MongoDB is a document-based NoSQL database, typically used for its ability to quickly scale, especially large amounts of data. MongoDB has two clear main benefits over SQL when it comes to data organization:
44. How I Built a Warehouse Management App Called Cardus

A web app that allows users to create and manage their warehouse of items.
45. MongoDB Support for NestJS Boilerplate With Hexagonal Architecture

NestJS Boilerplate with MongoDB support implementation with hexagonal architecture
46. SSH Tunneling to AWS EC2 and Connecting to DocumentDB with Python

The article is about how you can locally access your DocumentDB cluster via SSH Tunneling using Python.
47. How to Integrate MongoDB in an AWS EC2 Instance

Integrating MongoDB in an AWS EC2 instance involves several steps. The installation steps can vary depending on the Linux distribution you choose.
48. Cut Your MongoDB Costs by 79% with Shape‑First Optimizations

Protect your Series A from pricey MongoDB scale‑ups: cut costs 79% with query tuning, schema refactoring, TTLs, and 48‑hour profiling fixes.
49. How to Use .populate() With mongoDB

How to use populate() method with mongoDB to itch data across referenced collections
50. Express Setup: Golang and Testcontainers Unwrapped

Do we need all of this just to run a couple of integration tests for the database? The answer is obviously no.
51. How to Build Your Own TODO-list Service With Golang and MongoDB

Many have wondered how a simple task sheet or applications that provide such functionality work. In this article, we will write a small TODO service.
52. Essential Databases Every Developer Should Be Familiar With

Here’s that every kind of database that every developer to know about.
53. Improving Our MongoDB Write Throughput with SQS

Deep dive on how we got our MongoDB load at a steady sub 50% CPU load by using an SQS layer between our Node application and the database to save costs.
54. How I build Coronavirus Tracking Application

What is Coronavirus (COVID-19)?
Coronavirus (COVID-19) which is an infectious disease caused by respiratory illness and symptoms like flu, cough, fever, difficulty breathing, on December 31, 2019, the first case was recorded in Wuhan, China and later the virus got spread around the world and as of now, around 1 million+ confirmed cases are being recorded since then.
You can protect yourself from this virus by following basic precautions like washing your hand frequently, avoid touching your face, maintaining a distance of (1 meter or 3 feet) between people and most importantly if you are sick then immediately call for medical help at your nearest hospital.
55. InfluxDB: From Open Source Time Series Database to Millions in Revenue

The InfluxBD Origin Story: How Paul Dix took a failing SaaS product and turned it into a successful commercial open source time series database company.
56. Why We Should Have Different Databases

Today there are hundreds of SQL and NoSQL databases. Some of them are popular, some are ignored. Some are user-friendly and well documented and some are hard to use. Some are open sourced and some are proprietary. And, perhaps, the most important – some are scalable, optimized, highly available and some are difficult to scale or maintain.
57. Building a Scalable Node Abstract Repository for MongoDB

Lightweight abstract and polymorphic MongoDB repository implementation for Node.js apps
58. Top 3 Databases Every New Developer Should Know

Most new developers wonder which database is suitable for their project since they don’t want to get off on the wrong foot. So, first and foremost, let’s define a database. A database is a type of storage facility that electronically stores and organizes data so that it may be utilized and accessed later.
59. 10 Web Development Boosting Node.js Libraries and Frameworks

Take your Node.js skills to the next level with our top 10 library picks! Streamline workflows, optimize performance, and stay ahead of the competition
60. MongoDB vs. DocumentDB: Which Is A Better Choice for You?

Are you trying to decide if you should use MongoDB or DocumentDB? With the recent controversy surrounding licensing with MongoDB, it can be confusing to decide which option is right for your company or project. Amazon decided the core MongoDB code is challenging to scale while remaining highly available. Amazon wrote their implementation, which is compatible with the Apache 2.0 open source MongoDB 3.6 API. MongoDB, Inc. has also recently changed their license to make future imitations more difficult. To do this, they created an entirely new license called the Server Side Public License.
61. Efficient File Uploads in Node.js: Using Express, MongoDB, and GridFS for Scalable Storage

Learn how to efficiently handle file uploads in Node.js using Express, MongoDB, and GridFS to ensure scalability, security, and seamless file management.
62. Design for E-Commerce Apps Using a NoSQL Database

Working with a lot of data like products, orders, categories, users and payments is a very important topic when building e-commerce applications. In this post you’ll learn the very basics of structuring your noSQL schema so it’s fast and scalable for e-commerce scenarios.
63. MongoDB vs. DynamoDB: Choosing the Best Database for Your Business

All about MongoDB vs DynamoDB. Explore benefits, and in-depth comparison to find out the best choice for your business app.
64. Simplified Guide For Inserting Data Into MongoDB Using C#

This article explains the basics of inserting documents into MongoDB in C#. See code examples of InsertOne, InsertMany, and their async counterparts.
65. Learnings From The Meow Bot Attack on Our MongoDB Databases

and ever since then we never look at a kitty the same way again. meow!
66. How To Create a URL Shortener using MongoDB And Node

Let us learn about MongoDB, Mongoose, Node, and other tech by building a simple URL shortener project.
67. 8 Tools You Can Use to Analyze Big Data

An essential part of modern business, no matter what the industry, is Big Data – sets of copious amounts of data that reveal much in terms of trends and patterns regarding human behavior and interaction.
68. Using C# To Delete Documents From MongoDB

See code examples for how to delete documents from MongoDB in C#. This article covers the basics of different methods you can use to delete records from Mongo!
69. Meet MongoDB: HackerNoon Company of the Week

This week, HackerNoon features MongoDB — a popular NoSQL database designed for scalability, flexibility, and performance.
70. “I Want to Make my Own Netflix!” — So I Become a Software Developer

Growing up, I had an interest in learning and always dreamed of creating my own software.
71. MongoDB 8.0 Upgrade Guide: What You Need to Know Before Upgrading

Learn some of the new features of MongoDB 8.0 and the key considerations you should take into account before upgrading to the new version.
72. Homebrew – Explained in Simple English

So, there are tonnes of jargon, commands, processes that we follow blindly after surfing from the internet without knowing the actual reasons and under the hood processes, that just remain in our short term memory and get purged eventually, thus we don’t feel comfortable using or even about discussing in a group about them.
73. MongoDB – A Practical Guide for Beginners and Experts Alike

This text is a practical guide to performing basic operations in MongoDB. It focuses on essential topics like CRUD operations (Create, Read, Update, Delete)
74. Django MongoDB Backend Quickstart: Everything You Need to Know

Follow the quickstart to create a Django application, connect that application to a MongoDB deployment, and interact with the data stored in your database.
75. Boost MongoDB Performance: Motor Client vs PyMongo – Which is Faster?

To illustrate the performance differences, I prepared a stress test using two scripts: one using Motor (asynchronous) and the other using PyMongo (synchronous).
76. VoidZero, The New ESLint, MongoDB 8.0, and More – This Week in JS

This week, we have exciting updates that will make your development workflow smoother and faster.
77. A DIY Guide to Building an Analytics Dashboard with Node, Express, and Cube.js

In the following tutorial, I’ll show you how to create a basic analytics dashboard with Node, Express, and Cube.js. As a database, we’re going to use MongoDB with MongoDB BI Connector. If you’re not familiar with it, I highly recommend you go through the Building a MongoDB Dashboard tutorial. It covers the basics of setting up Mongo and its BI Connector.
78. A Brief Introduction to MongoDB

MongoDB is a document-oriented NoSQL database for storing large amounts of data. MongoDB uses collections and documents instead of tables and rows
79. MERN Stack: A Guide for New Developers

Setting up a MERN stack application efficiently, leveraging a pre-configured repository and streamlined development environment management.
80. NoSQL: A Brief History and the DynamoDB Challenge

Dynamo accelerated the NoSQL revolution that’s driving the database industry.
81. Benchmarks for Inserting Documents Using C# for MongoDB

Curious about C# MongoDB insert benchmarks? In this article, I show you BenchmarkDotNet code and the results for several variations of inserting data!
82. 🔥here’s How I Built a Stunning Chat App With React 🚀

Realtime Chat App built using React.js, Node.js, Socket.io, Express and MongoDB. This chat app is also responsive.
83. How to Connect MongoDB(4.2.10) and MongoDB Compass Locally

What is MongoDB?
84. Easily Run Local Databases Using C# Testcontainers for MongoDB

Learn how to use C# Testcontainers for MongoDB! If you’re developing a dotnet application and want to use MongoDB, Testcontainers can be a HUGE asset!
85. Building a Task Manager API with NodeJS, Express, MongoDB, and Heroku

This article provides a step-by-step guide on how to build and deploy a Task Manager API using popular technologies such as NodeJS, Express, MongoDB, and Heroku
86. SQL Databases Vs. NOSQL Databases

The decision to choose a database for project is not that simple. But when it comes to choosing a database, the biggest decisions is picking a relational (SQL) or non-relational (NoSQL) data structure.
87. Automating MongoDB Sharded Cluster Deployment with Ansible

Master the art of deploying MongoDB sharded clusters with Ansible—a detailed step-by-step guide for seamless automation.
88. AvionDB: A MongoDB-like Distributed Database

In the past few months we have been getting this question a lot:
89. Breaking Down MSON Template Queries

Template Queries are dynamic templates constructed with MongoDB-style operators, which allow you to customize MSON components with less code.
90. The Pros and Cons of NoSQL

Learn how NoSQL differs from SQL and how it’s built for high performance and availability. And no, it doesn’t stand for “No SQL”.
91. Making Cooking a Breeze By Building Your Own Recipe Finder With Nodejs

The Recipe Finder API is a versatile solution for efficiently storing and retrieving recipes based on ingredients, dietary needs, and other preferences.
92. How to Run Node.js with MongoDB [Tutorial]
Many of today’s web applications use node.js in conjunction with MongoDB to store and access data on the backend server. Not only does node.js excel in ease of access to non-relational databases like MongoDB, but brings scalability and speed to the server side of your app.
93. CP Systems Explained, Part 2: Quorums, Consensus, and the Price of Being Right

Let’s look at what CP systems actually do under the hood when they choose consistency over availability.
94. Self-Healing Infrastructure Could Be the Future of Data Management

AI-driven automation in database management transforms reactive ops into predictive, self-healing systems for scale, reliability, and performance.
95. I Tried Every Open Source Database and Found Only One That is Actually Useful

Let’s walk through this journey. My journey. Maybe it helps someone else avoid the same database-induced headache.
96. I Built an Open-Source Schema Visualization Tool for Mongoose/MongodDB Under 1000 Lines of Code

This article is about an open-source tool that can create schema visualizations from Mongoose schema files.
97. How to Change Parameters of a Server at Runtime

Implementation of business configuration provider tips. Java, Spring and MongoDB in action
98. The Noonification: State of the Noonion 2024: HackerNoon Keeps on Blogging (4/2/2024)

4/2/2024: Top 5 stories on the HackerNoon homepage!
99. MEAN Stack Development: All That You Need To Know

Web development is not the same it was in the early internet age. It is a fast-paced and diverse environment. With the continuous advancements in frameworks, programming languages and tools, it becomes difficult to choose the “right” tech to ensure rapid, accurate and secured web application development.
100. Is MEAN Tech Stack the Best Choice for Enterprise Solutions?

Get to know why the MEAN tech stack for enterprise solutions is the way to go about scalable, secure, and sustainable software for organizations.
101. How to Stream XML messages from IBM MQ into Kafka into MongoDB

Let’s imagine we have XML data on a queue in IBM MQ, and we want to ingest it into Kafka to then use downstream, perhaps in an application or maybe to stream to a NoSQL store like MongoDB.
102. Beginner’s Guide For Easy MongoDB Filters in C#

Learn the basics of MongoDB Filtering in C# with simple code examples! See how to use the MongoDB FilterDefinitionBuilder to support filtering in MongoDB.
103. Lessons I Learned From Managing Hundreds of Millions of Data in MongoDB

In this post, I will share r.eal experience that I gained while working with hundred’s of millions of pieces of data in MongoDB
104. How to Stop Your MongoDB Cluster from Going Read-Only at the Worst Possible Time

A knowledge of MongoDB’s election process and quorum requirements is important before choosing the best approach.
105. How to Find Insecure MongoDB Connection Strings in Public GitHub Repositories

A guide on how to protect yourself and your projects while on Github.
106. Mongo Lens Earns a 46 Proof of Usefulness Score by Building a Powerful Mobile MongoDB Client

Mongo Lens earns a 46 Proof of Usefulness score, offering a mobile MongoDB client for secure, on-the-go database management and visualization.
107. Tracking Mongoose Query Times with a Few Lines of Code

This article details how to build a lightweight query profiler using Mongoose pre and post hooks without having to integrate APM tools.
108. Mongo Speaks

Mongo here. Mongo not always DBA, once Mongo just simple man, love horse, love outdoors
109. The Ultimate Guide To Custom Role Based Access Without Third Party Libraries

Here, we have four roles: Sme, Sponsor, Admin, Operations.Initially, we had only 3 roles.Operations role was added later and Operations user has permissions similar to the Admin user.In the code, we had to replace every instance of if (user.type == USER_TYPES.ADMIN) with if (user.type == USER_TYPES.ADMIN || user.type == USER_TYPES.OPERATIONS).As this is time consuming and we can also miss many instances, we have created a roles module. In the roles module,the roles are defined along with their respective permissions as seen in Code (Part-III). Based on the permissions for each role, we will evaluate the authorization for the user in each of our controller methods.If the user has access, only then he will be granted the resources.
110. When ORMs Disobey: A Mongoose Story

In hindsight, it seems like mongoose was doing the sensible thing by simply ensuring that the document existed in the database.
111. Py-DockerDB: Simplifying Programmatic Database Handling

Local database setup is deceptively expensive. It introduces variance into your dev environments and bakes hidden assumptions into your codebase. I wanted every
112. AvionDB Introduction: A MongoDB-like Distributed Database

In the past few months we have been getting this question a lot:
113. The Noonification: The Denominator (5/9/2023)

5/9/2023: Top 5 stories on the Hackernoon homepage!
114. The Noonification: Nvidias Ascent Proves AI is Where Its At 🤖 (6/7/2023)

6/7/2023: Top 5 stories on the Hackernoon homepage!
Thank you for checking out the 114 most read blog posts about Mongodb on HackerNoon.
Visit the /Learn Repo to find the most read blog posts about any technology.