Do you always need to provide a database for the application?

Some thoughts on database requirements. Maybe you need it, maybe you don't.

Do you always need to provide a database for the application? of course not.

As with everything in technology, there is no ideal choice in every situation.

Computers provide a variety of ways to store data. The most obvious alternative isfile.

A common example is CMS. Some CMS use databases to store data (such as WordPress), while others prefer to use files to store data (such as Grav or Statamic).

In this case, not using a database means easier deployment to managed services.

However, when dealing with large amounts of data, in the long run, databases are definitely a good way to simplify life.

If you are building a macOS or iOS application, you may decide that you only need JSON or Plist files to process the data, because users don't need to store a lot of files.

Maybe Core Data (a wrapper for an internal SQLite database) is best for you.

As always, this is a balance between complexity and convenience.


More database tutorials: