AlgoViz

SQL or NoSQL

easy 24 min

The useful question is not which is better but which questions, rules and numbers this part of the system has.

Where it shows up

The same pattern appears across everyday software.

  • Stack Overflow, 2016

    Its architecture article shows SQL Server as the main database with Redis for caching and Elasticsearch for search: several stores around a relational core.

  • Amazon

    AWS lists both Amazon Aurora, which is relational, and DynamoDB, which is not, among the services behind Prime Day 2024.

  • Facebook

    Its engineers describe MySQL for important workloads and Memcached in front as a building block for the cache.

  • A clinic

    Appointments need rules across rooms, people and times. Scanned letters go to object storage. One relational database is enough.

  • A fleet of scooters

    Positions every few seconds go to a wide-column store by scooter and hour. Rides and bills stay in SQL.

  • A news site

    Articles are documents read whole and cached. Subscriptions and payments are relational.