Recent Posts
Archives

Posts Tagged ‘Backend’

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 [DotJs2025] Durable Executions for Mortals

Backend’s bedrock—state’s stewardship, asynchrony’s aegis—once consigned coders to queues’ quagmires, yet React’s reactive rite reimagines this realm. Charly Poly, developer marketer at Inngest, advocated durable executions at dotJS 2025, transmuting frontend’s fluency into fault-tolerant flows. A frontend aficionado attuned to async’s arcana, Charly posited workflows as web’s warp: events’ echoes, states’ sagas—sans system’s scutwork.

Charly’s chronicle commenced with React’s renaissance: beyond templates’ tapestry, a triad taming temporality—events’ ingress, data’s domicile, UI’s unison. Backend’s ballad parallels: requests’ reception, persistence’s peril, orchestration’s odyssey. Inngest’s insight: functions as filaments, durable by decree—stepwise sagas, state salved, failures finessed. TypeScript’s temperance: inngest.createFunction({steps: ['ship', 'email']}), waits weaving webhooks—shipment’s vigil, seven-day sentinel.

This tapestry tempers toil: throttling’s thrum, rate’s restraint—web’s whims writ large. Charly contrasted: Temporal’s toils versus Inngest’s intimacy—events’ essence, JS’s jocularity. AI’s affinity: RAG’s relays, agents’ arcs—workflows as warp and weft.

Durable’s dividend: devs’ deliverance—frontend’s flair fortifying backends, sans queues’ quandary.

React’s Reactive Roots

Charly canvassed React’s remit: events’ embrace, fetches’ flux, states’ serenity—templating’s triumph. Backend’s burden: ingress’ influx, persistence’s pang—orchestration’s odyssey.

Inngest’s Immutable Flows

Functions’ filaments: steps’ sequence, waits’ watch—webhooks’ whisper, shipment’s sojourn. TypeScript’s tether: throttling’s tie, AI’s arc—RAG’s relay, agents’ agency.

Links:

PostHeaderIcon [KotlinConf2019] Ktor for Mobile Developers: Conquering the Server with Dan Kim

For many mobile developers, the thought of venturing into server-side development can be daunting, often perceived as a realm of unfamiliar languages, complex frameworks, and different programming paradigms. Dan Kim, an experienced developer, aimed to demystify this process at KotlinConf 2019 with his talk, “Ktor for Mobile Developers: Fear the server no more!”. He showcased Ktor, a Kotlin-based framework for building asynchronous servers and clients, as an accessible and powerful tool for mobile developers looking to create backend components for their applications. The official website for Ktor is ktor.io.

Dan Kim’s session was designed to demonstrate how existing Kotlin knowledge could be leveraged to easily build server-side applications with Ktor. He promised a practical, real-world example, walking attendees through everything needed to get a server up and running: authentication, data retrieval, data posting, and deployment, ultimately aiming to give mobile developers the confidence to build their own backend services.

Introducing Ktor: Simplicity and Power in Kotlin

Ktor is a framework built by JetBrains, designed from the ground up with Kotlin and coroutines in mind, making it inherently asynchronous and well-suited for building scalable network applications. Dan Kim introduced Ktor’s core concepts, such as its flexible pipeline architecture, routing capabilities, and features for handling HTTP requests and responses. A key appeal of Ktor for mobile developers is that it allows them to stay within the Kotlin ecosystem, using a language and paradigms they are already familiar with from Android development.

The presentation would have highlighted Ktor’s ease of use and minimal boilerplate. Unlike some larger, more opinionated server-side frameworks, Ktor offers a more unopinionated and lightweight approach, allowing developers to choose and configure only the features they need. This can include functionalities like authentication, content negotiation (e.g., for JSON or XML), templating engines, and session management, all installable as “features” or plugins within a Ktor application.

Building a Real-World Server-Side Component

The core of Dan Kim’s talk was a hands-on demonstration of building a server-side component. He aimed to build a RESTful API and a web application, complete with authentication, and deploy it to Google Cloud, all within an impressively small amount of code (around 350 lines, as he mentioned). This practical example would have covered essential aspects of backend development:
* Routing: Defining endpoints to handle different HTTP methods (GET, POST, etc.) and URL paths.
* Request Handling: Processing incoming requests, extracting parameters, and validating data.
* Authentication: Implementing mechanisms to secure endpoints and manage user identity, possibly integrating with external services.
* Data Interaction: Showing how to get data from and post data to other services or a database (though the specifics of database interaction might vary).
* Deployment: Walking through the process of deploying the Ktor application to a cloud platform like Google Cloud, making the backend accessible to mobile clients.

By tackling these common server-side tasks using Ktor and Kotlin, Dan aimed to alleviate the fears mobile developers might have about backend development and demonstrate that they already possess many of the necessary skills.

Empowering Mobile Developers to Go Full-Stack

The overarching message of Dan Kim’s presentation was one of empowerment. He sought to show that with Ktor, mobile developers no longer need to “fear the server”. The framework provides a gentle learning curve and a productive environment for building robust and efficient backend services. This capability is increasingly valuable as mobile applications become more sophisticated and often require custom backend logic to support their features.

Dan Kim’s practical demonstration, from basic Ktor setup to cloud deployment, was intended to give attendees a clear understanding of how to connect their own server-side components to virtually any API. By simplifying the backend development process, Ktor enables mobile developers to potentially take on more full-stack responsibilities, leading to greater control over their application’s entire architecture and a faster development cycle for new features. He hoped his session would provide the confidence needed for mobile developers to start building their own server-side solutions with Kotlin and Ktor.

Links:

PostHeaderIcon [KotlinConf2019] Sharing Is Caring: Kotlin Multiplatform for Android Developers with Britt Barak

The vision of writing code once and running it across multiple platforms is a long-held dream in software development. Britt Barak, an experienced Android and Kotlin developer, and Google Developer Expert, brought this vision closer to reality for Android developers at KotlinConf 2019. Her talk, “Sharing Is Caring – Kotlin Multiplatform for Android Developers,” explored the exciting, albeit then-experimental, capabilities of Kotlin Multiplatform (KMP) and how it could revolutionize the way Android developers collaborate with teams working on iOS, backend, or JavaScript projects.

Britt Barak emphasized the common scenario where Android developers work alongside backend services or with iOS and JavaScript teams developing similar functionalities. The ability to share Kotlin code across these platforms promised significant savings in implementation time, testing effort, and overall development efficiency. Her session focused on creating a full-stack Kotlin project, demonstrating how to share code between an Android app and a backend Kotlin component, ultimately leading to more efficient and robust applications.

The Promise of Kotlin Multiplatform

Kotlin Multiplatform (KMP) allows developers to write common logic in Kotlin and compile it for various targets, including JVM (for Android and backend), JavaScript (for web frontends), and Native (for iOS and other native applications). Britt Barak highlighted the power of this approach: sharing business logic, data models, and even presentation logic (in some architectures) can drastically reduce redundancy and inconsistencies between different platform implementations.

The core idea is to isolate platform-agnostic code in a “common” module. This module can then be consumed by platform-specific modules (e.g., Android, iOS, JVM backend) which implement the platform-dependent parts, such as UI or interactions with platform-specific APIs. This separation allows teams to leverage Kotlin’s strengths across their entire stack while still catering to the unique requirements of each platform. Britt’s presentation aimed to show Android developers how they could take the lead in initiating such code-sharing efforts, benefiting not only their own workflow but also that of their teammates on other platforms.

Practical Implementation and Considerations

Britt Barak’s session was hands-on, guiding attendees through the process of setting up and building a Kotlin Multiplatform project. She covered key KMP concepts such as:
* Common Modules: Where shared Kotlin code resides, free of platform-specific dependencies.
* Platform-Specific Modules: Modules targeting specific platforms (Android, JVM, JS, Native) that can depend on common modules and implement platform-specific functionalities using expect/actual declarations.
* expect and actual Keywords: A powerful mechanism in KMP that allows common code to declare an expected functionality (expect), which platform-specific modules then provide concrete implementations for (actual). This is crucial for accessing platform-specific APIs (like device sensors, file systems, or UI elements) from shared code.

She demonstrated how to structure a project to share code effectively between an Android application and a backend Kotlin component, showcasing the potential for building more cohesive and maintainable full-stack applications. This practical approach would have involved setting up the build system (Gradle), defining dependencies, and writing shared business logic that could be consumed by both the Android client and the server. The goal was to illustrate how to build “more efficient and robust applications” through strategic code sharing.

Navigating the Experimental Landscape and Community Support

At the time of KotlinConf 2019, Kotlin Multiplatform was still an experimental feature. Britt Barak acknowledged this, preparing attendees for a landscape where documentation might sometimes be a bit dated, and tooling was rapidly evolving. However, she also pointed to the strong and growing community support as a significant asset. The official Kotlin Slack and various online forums were highlighted as valuable resources for troubleshooting and learning from others’ experiences.

She shared the sentiment that KMP was gaining popularity in a positive way, with many developers interested and actively contributing to its growth. This collaborative environment was seen as a good sign for the future development and stabilization of KMP. Britt encouraged developers to embrace this journey, start experimenting with multiplatform projects, and contribute to the community by sharing their own code and experiences. Her message was clear: despite its experimental nature, Kotlin Multiplatform offered a powerful and awesome way to achieve cross-platform code sharing, and it was a “really good time to jump on on the ride”.

Links: