Skip to content

What are databases

Course: MongoDB, Zod, Error handling and Input validation - chapter 2

Databases are organized collections of data that are structured to enable efficient storage, retrieval, and management of information.

Whenever you create a full stack app , you persist data in databases.

For example -

  1. User information
  2. TODOs of your todo app
  3. Posts for facebook
  4. Tweets for twitter …
  • Relational Databases: Use tables to store data and relationships between data (e.g., MySQL, PostgreSQL).
  • NoSQL Databases: Designed for more flexible data models and often used for big data or real-time web applications (e.g., MongoDB).
  • Graph Databases: Store data in nodes and edges to represent relationships (e.g., Neo4j).
  • Vector Databases: Used in ML to store data in the form of embeddings

Today we’ll be learning about MongoDB which is a NoSQL Database