Best for: Nearly everything relational, and the safe default for a new project.
The default answer because it is genuinely that good: rigorous about correctness, feature-rich far beyond what most users touch — JSON, full-text search, geospatial, extensions — and backed by the deepest pool of documentation and community answers of any database. Almost every application you will self-host supports it, and starting here means never migrating for a bad reason.
Databases & Storage
PostgreSQL
Intermediate
★ 22,846
Replaces: MySQL, MariaDB, Amazon RDS
Full review of PostgreSQL →
Best for: PHP applications and workloads built around the MySQL dialect.
The community continuation of MySQL, and the pragmatic answer for the enormous installed base of PHP applications built against that dialect. It is fast, well understood, and every hosting provider supports it. Choose it when something requires it rather than on its own merits — but when that requirement exists, it is the right choice and not a compromise.
Databases & Storage
GPL-2.0
Intermediate
★ 8,599
Replaces: MySQL, PostgreSQL, Amazon Aurora
Full review of MariaDB →
Best for: Caching, queues and session state that can be rebuilt.
Under its current name Valkey, and the answer for caches, queues, session stores and rate limiters — the fast, ephemeral layer almost every application wants. The critical thing to understand is that it is designed around data that may be lost: treat it as a cache with a rebuild path, not as your source of truth, and the failure modes stop being alarming.
Databases & Storage
BSD-3-Clause
Intermediate
★ 27,726
Replaces: Redis Enterprise, Amazon ElastiCache, Memcached
Full review of Valkey →
Best for: Flexible or rapidly evolving document schemas.
Document storage with a flexible schema, which is genuinely the right model when your data is a varied collection of records that would require constant migrations in a relational schema. The licence is a real consideration for commercial use, and FerretDB on this list offers the API without it.
Databases & Storage
SSPL
Intermediate
★ 28,681
Replaces: Amazon DocumentDB, Firebase Firestore, CouchDB
Full review of MongoDB →
Best for: Analytics and aggregation over very large datasets.
A columnar engine built for analytical queries — aggregating and slicing enormous datasets — where it is orders of magnitude faster than a row-store. It is not an OLTP database and should not be used as one. Deploy it when you have real analytical volume, because below that threshold the operational cost is not repaid.
Databases & Storage
Apache-2.0
Advanced
★ 50,960
Replaces: Google BigQuery, Amazon Redshift, Snowflake
Full review of ClickHouse →
Best for: Offline-first applications that must sync on reconnect.
The database whose headline feature is synchronisation: offline-first clients that reconcile with a server, with a documented conflict model. That makes it the right foundation for an application designed to work offline, a niche where the relational options are considerably more work.
Databases & Storage
Apache-2.0
Intermediate
★ 7,014
Replaces: Firebase Firestore, MongoDB, PouchDB Cloud
Full review of Apache CouchDB →