How Fastabase architecture works
mainFastabase provides a self-hosted Supabase experience on AWS with PlanetScale Postgres. The architecture consists of the following components:
- Database: PlanetScale Postgres.
- Supabase Components: Most components (Auth, Storage, PostgREST, Imgproxy, Pg-meta, Logs) are deployed as Docker containers to Amazon ECS Fargate.
- Supabase API Entrypoint: An Application Load Balancer (ALB) positioned behind a CloudFront distribution.
- Supabase Studio: Deployed as a serverless component using OpenNext. It is protected by user/password authentication via a CloudFront function.
- Email: Amazon SES SMTP servers are used for email delivery.
- SSL Proxying: Because the Logs and Realtime components do not yet support direct SSL connections to Postgres, an Envoy service is deployed as an ECS service to act as an SSL proxy for PlanetScale.