Skip to content

Modern API

Interactive Diagram

새 탭 ↗
  • Developed for the purpose of rapidly building Backend Services on top of a database
  • Most are built on PostgreSQL
  • Can handle Tables, Views, and Joins without writing any code at all
  • Some also provide a UI for management
  • Some are offered as paid SaaS
  • https://postgrest.org/
  • PostgREST simply exposes a REST API on top of PostgreSQL.
  • It connects to an existing PostgreSQL instance rather than embedding one, and does not support other databases.

PostgREST Architecture

  • PostgreSQL-based REST API
  • Permissions handled via PostgreSQL roles
  • REST API for tables & views, CRUD
  • Full-text search supported
  • JSON data querying and filtering
  • Limit settings for big tables
  • Various response formats supported (json, csv, etc.)
  • Table & view joins supported
  • Partition tables supported
  • Procedures/functions that return a table form supported
  • Bulk insert of json and csv data
  • Binary data supported
  • Only supports PostgreSQL
  • Tables must have FOREIGN KEY constraints to handle joins
  • Because of the URL-based constraints, the query syntax is not intuitive
  • REST API Query
    • Table Query, Field Selector Table Query
  • Table & View Join
    • ER-Diagram ER-Diagram
    • Table Join Query Table Join Query
  • Response Format
    • Various Response Formats supported Reponse Format
  • https://supabase.com/
  • A platform built on PostgREST that integrates management of the database and storage (files).
  • It is built around PostgreSQL and does not support other databases.
  • We evaluated it as a SaaS offering in 2021. It now officially supports self-hosting as well.

Supabase Architecture

  • Database & Storage Management Platform
  • Managed per Project
  • Retains all the features of PostgREST
  • Supports GraphQL
  • Provides S3-based Storage functionality
  • Provides UI and REST API
  • Provides UI SDKs for Javascript, Python, Node.js, etc.
  • Supports migration of existing PostgreSQL
  • Supports OAuth Authentication
  • (As of 2021) SaaS-centric, self-hosting is now supported
  • Only supports PostgreSQL
  • REST API & SDK Learning Curve
  • Features provided in the UI
    • Table Data management Table Data management
    • Storage management Storage management
    • Database management Database management
  • SDK support
    • Javascript SDK Javascript SDK
    • Other SDKs Other SDKs
  • https://hasura.io/
  • It describes itself as a GraphQL Engine.
  • Unlike the other products, it can use other databases such as MS-SQL in addition to PostgreSQL.

Hasura Architecture

  • GraphQL Engine
  • Supports both a Docker Image and SaaS
  • Supports PostgreSQL, MS SQL, Citus/Hyperscale, BigQuery, with more continually being added
  • Table management and GraphQL supported in the UI
  • No FK required to handle joins; handled via Relationship configuration
  • Uses GraphQL
  • Filter (action) configuration on API services, authentication, etc.
  • Collects/delivers database changes as events, Triggers
  • Schedule Trigger functionality
  • Provides REST API and CLI
  • No database management functionality
  • No SDK
  • UI Features
    • API testing API testing
    • Database connection and management
    • Action management Action management
    • Monitoring Monitoring
  • GraphQL GraphQL
  • CLI CLI
  • Supported Databases Supported Databases Cloud Database
  • SaaS offering SaaS offering