When your frontend app needs to save user data (like accounts, posts, or products), it can’t just use arrays like we used in module 1 - that data would disappear when the server restarts.

Instead, we use a database, which:

  • Stores data permanently
  • Can handle thousands of users
  • Can be searched and filtered quickly
  • Lets your backend server store and retrieve data

This makes databases essential for any real-world web application.

Tags: