Recent Posts
Archives

Posts Tagged ‘PostgreSQL’

PostHeaderIcon [DevoxxFR2026] Supabase: The Open Source Firebase Alternative for Modern Backend Development

Lecturer

Jason Lagarde is an engineer at Sêmeia, specializing in full-stack development and backend architectures. As a Ruby community organizer and triathlete, he brings practical experience building complete applications using modern tools and open-source platforms.

Abstract

Managing data, implementing authentication, handling file storage—these foundational concerns often delay application development. Supabase offers a comprehensive open-source backend platform that addresses these needs while remaining self-hostable via Docker. Jason Lagarde demonstrates core capabilities including PostgreSQL databases, authentication with fine-grained permissions, S3-compatible storage, and serverless functions. Through a live JavaScript application example, attendees witness the simplicity of building complete backends. The presentation equips developers with clear understanding of Supabase’s extensive feature set for rapid, reliable backend implementation.

The Backend Development Challenge and Supabase’s Promise

Modern application development requires addressing numerous infrastructure concerns before focusing on core business logic. Teams need databases for data persistence, authentication systems with proper authorization, file storage solutions, and mechanisms for executing custom server-side code. Traditional approaches involve stitching together multiple services, each with distinct APIs, security models, and operational overhead.

Supabase emerged in 2020 as an open-source alternative inspired by Firebase’s developer experience but addressing its proprietary limitations. Founded by Paul Copplestone and Ant Wilson, it provides a unified platform built on PostgreSQL, offering authentication, real-time capabilities, storage, and edge functions—all while maintaining full data control through self-hosting options.

Core Components: Database, Authentication, and Storage

At Supabase’s foundation lies a PostgreSQL database, providing familiar SQL capabilities with modern extensions. Developers interact through Studio, a comprehensive web interface for schema management, query execution, and data exploration. Tables, views, functions, and triggers receive full visual support.

Authentication integrates seamlessly with multiple providers. Magic links, OTP, and social logins (Google, Facebook, etc.) simplify user management. Row Level Security (RLS) policies enforce fine-grained access control directly at the database level, ensuring users see only authorized data.

Storage leverages S3-compatible object storage with dedicated buckets. Files upload through simple SDK calls, with policies governing access similar to database RLS. This unified security model simplifies permission management across data types.

Real-Time Capabilities and Serverless Functions

Real-time subscriptions enable live updates without polling. Changes to database tables or specific queries propagate instantly to connected clients, powering collaborative features and responsive interfaces.

Edge Functions execute TypeScript code in a Deno runtime, deployed globally for low-latency server-side logic. These functions support webhooks, background tasks, and complex operations while maintaining the platform’s security boundaries.

Building a Complete Application: From Schema to Production

Development begins with the Supabase CLI, which initializes projects and manages local Docker-based environments. The supabase start command spins up all services with accessible URLs for immediate testing.

Schema creation occurs through Studio or migration files. For an athlete management application, tables capture essential fields while RLS policies ensure proper access control. Authentication setup enables secure user sessions through SDK integration.

Frontend integration requires minimal code. Initializing a Supabase client with project URL and public key enables authenticated queries. Real-time subscriptions and file uploads follow consistent patterns across operations.

Serverless functions extend capabilities for background processing. A synchronization function, for example, could aggregate competition results, demonstrating how edge computing complements the core platform.

Advantages, Considerations, and Ecosystem Maturity

Supabase delivers compelling benefits: centralized backend services, multi-language SDKs, comprehensive features, rapid setup, and excellent documentation. Self-hosting options provide deployment flexibility while the hosted platform handles scaling concerns.

Challenges exist around RLS complexity for intricate authorization schemes and observability limitations without additional integrations. Teams benefit from PostgreSQL familiarity, as Supabase builds directly upon it.

The ecosystem continues expanding with improved tooling, community resources, and production hardening. For teams seeking open-source alternatives to proprietary backend platforms, Supabase offers a mature, capable solution.

Conclusion

Supabase transforms backend development by providing Firebase-like convenience within an open, extensible architecture. Through unified security, comprehensive features, and developer-friendly interfaces, it enables rapid creation of robust applications. Whether self-hosted or using managed services, teams gain control over their data and infrastructure while benefiting from battle-tested components. As modern applications demand sophisticated backends, platforms like Supabase democratize access to production-grade capabilities.

Links:

PostHeaderIcon [PHPForumParis2021] Chasing Unicorns: The Limits of the CAP Theorem – Lætitia Avrot

Lætitia Avrot, a PostgreSQL contributor and database consultant at EnterpriseDB, delivered a compelling presentation at Forum PHP 2021, demystifying the CAP theorem and its implications for distributed systems. With a nod to Ireland’s mythical unicorns, Lætitia used humor and technical expertise to explore the trade-offs between consistency, availability, and partition tolerance. Her talk provided practical guidance for designing resilient database architectures. This post covers four key themes: understanding the CAP theorem, practical database design, managing latency, and realistic expectations.

Understanding the CAP Theorem

Lætitia Avrot opened with a clear explanation of the CAP theorem, which states that a distributed system can only guarantee two of three properties: consistency, availability, and partition tolerance. She emphasized that chasing a “unicorn” system achieving all three is futile. Drawing on her work with PostgreSQL, Lætitia illustrated how the theorem shapes database design, using real-world scenarios to highlight the trade-offs developers must navigate in distributed environments.

Practical Database Design

Focusing on practical applications, Lætitia outlined strategies for designing PostgreSQL-based systems. She described architectures using logical replication, connection pooling with HAProxy, and standby nodes to balance consistency and availability. By tailoring designs to acceptable data loss and downtime thresholds, developers can create robust systems without overengineering. Lætitia’s approach, informed by her experience at EnterpriseDB, ensures that solutions align with business needs rather than pursuing unattainable perfection.

Managing Latency

Addressing audience questions, Lætitia tackled the challenge of latency in distributed systems. She explained that latency is primarily network-driven, not hardware-dependent, and achieving sub-100ms latency between nodes is difficult. By measuring acceptable latency thresholds and using tools like logical replication, developers can optimize performance. Lætitia’s insights underscored the importance of realistic metrics, reminding attendees that most organizations don’t need Google-scale infrastructure.

Realistic Expectations

Concluding her talk, Lætitia urged developers to set pragmatic goals, quoting her colleague: “Unicorns are more mythical than the battle of China.” She emphasized that robust systems require backups, testing, and clear definitions of acceptable data loss and downtime. By avoiding overcomplexity and focusing on practical trade-offs, developers can build reliable architectures that meet real-world demands, leveraging PostgreSQL’s strengths for scalable, resilient solutions.

Links: