Serverless SaaS & Booking
2025 — 2026

EduBook

EduBook is a professional full-stack web platform designed for individual teachers and freelancers in private education. It allows students to independently book individual lessons without registration, while offering the teacher a unified dashboard for calendar management, request approval, and visual customization of the landing page.

Next.js 16React 19TypeScriptSupabaseTailwind CSSResend
EduBook

EduBook: Serverless Lesson Booking Platform

A full-stack architecture focused on availability management, account-free direct booking, and calendar synchronization with database-level concurrency control.


Operating Context and Inefficiencies

Lesson management for freelance teachers and tutors often relies on fragmented tools: chats, shared spreadsheets, and paper calendars. This manual workflow introduces recurring friction:

  • Schedule overlaps caused by asynchronous confirmations sent across different channels.
  • High drop-off rates during the booking flow due to lengthy registrations or complex forms.
  • Time wasted on manual delivery of reminders, video conference links, and schedule updates.

EduBook addresses these needs by providing a streamlined, autonomous web application for the individual professional, structured at the codebase level to scale into multi-user contexts later on.


Application Model and Evolution

Project development follows a three-phase progression:

  1. Autonomous Instance (Current State):
    A dedicated application for a single teacher, featuring a controlled availability perimeter and a direct booking interface for the end-user.
  2. Multi-Tutor Platform:
    Consolidation into a single instance with dynamic routing based on the professional's slug (/[tutor-slug]), record isolation via Row Level Security (RLS) on the database, and integrated Stripe payments.
  3. Multi-Location Management for Institutes:
    Centralized administration for academies and study centers, featuring teacher assignment by subject, physical and virtual room organization, and granular role management (administrator, secretary, teacher).

Architectural Choices and Application Logic Management

1. Concurrency Control and Atomicity

  • The Problem: If two students attempt to confirm the exact same time slot simultaneously, an unsynchronized pipeline can generate overlapping records.
  • The Implementation: Bookings are processed via Next.js Server Actions and executed within a PostgreSQL transaction. The selected slot is protected using SELECT ... FOR UPDATE and governed by a partial unique index (UNIQUE INDEX ON bookings (slot_id) WHERE status = 'confirmed'). In the event of a collision, the transaction fails on the second attempt without leaving incomplete or inconsistent records.

2. Frictionless Booking Flow Without Formal Authentication

  • The Problem: Requiring users to create an account with a password beforehand increases drop-off rates prior to confirmation.
  • The Implementation: The student inputs only their first name, last name, and email address. The request is filtered in the background by Cloudflare Turnstile to block automated access without presenting visual challenges to the user. Once registered, the system emails a cryptographic token linked to the /gestisci/[booking_id] endpoint, allowing the student to modify or cancel their booking.

3. Dynamic Slot Calculation

  • The Implementation: The teacher sets continuous time blocks (e.g., from 3:00 PM to 7:00 PM), but individual sessions may vary in duration (60 or 90 minutes) or require intermediate buffer periods.
  • The Implementation: A server-side algorithm breaks down the continuous interval into segments compatible with the selected service duration, filtering out in real time time blocks that are already confirmed or no longer selectable based on the current time zone.

4. Notification and Calendar Management

  • The Problem: Failing to receive lesson details or forgetting to add them to a personal calendar significantly increases the no-show rate.
  • The Implementation: Integration with the Resend transactional service for automated confirmation delivery. The email includes both pre-filled parameters for quick addition to Google Calendar (date, meeting details, virtual room link) and the standard .ics file for direct synchronization with desktop and mobile clients like Apple Calendar and Outlook.

Technology Stack

Layer Tool Architectural Purpose
Framework Next.js 16 (App Router) Server-side rendering, Server Actions for transactional operations
Frontend React 19 + TypeScript Interface management, static payload validation between client and server
Styling Tailwind CSS Responsive layout optimized for touch and mobile screens
Database & Auth Supabase (PostgreSQL 16) Persistence, ACID transaction management, and Row Level Security (RLS) policies
Email Service Resend Transactional message delivery with dynamic template support
Perimeter Security Cloudflare Turnstile Non-interactive bot traffic protection

Functional Test Results

The resilience of the transactional logic and the efficiency of the user journey were tested using dedicated automation scripts:

  • Conflict Avoidance: 0 double bookings recorded across a set of over 500 simultaneous concurrent requests targeting the exact same time slot.
  • Flow Duration: Estimated average time for a user to complete a booking is under 45 seconds.
  • Infrastructure Costs: €0/month for baseline traffic volumes, thanks to serverless, usage-based scaling.
Start a Project

Have an idea or a technical challenge to solve?

I architect and engineer modern web applications, scalable platforms, and bespoke cloud workflows tailored to your requirements.