Retour aux Projets

Avionics

Catégorie :Critical Booking Platform
Date :March 2026
Avionics Interface

À propos de ce projet

Mission-critical system built with Hexagonal Architecture and Effect-TS. Strictly decouples domain logic from infrastructure for deterministic behavior.

Fonctionnalités Clés

Monorepo & pnpm Catalogs

Seamless sharing of domains and types between Frontend and Backend using Turborepo. Dependency versions are strictly harmonized via pnpm catalogs preventing any mismatches.

Framework Agnostic UI

React components are completely 'dumb', acting only as views. Complex reservation workflows and invariants are deterministically orchestrated by XState.

Effect Resilience

Declarative network failure management and type-level error encoding.

Property-Based Testing

Validation of over 30 business properties via random fuzzing and payload shrinking (fast-check), ensuring survival across edge cases conventional unit tests would miss.

Native DI

Dependency injection handled by the Effect compiler without decorators.

Parse, Don't Validate API

Leveraging @effect/platform for strict schemas mapping internal business failures directly to HTTP status codes, powering an interactive, always-truthful Scalar openAPI spec.

Défis Rencontrés

Adopting the rigor of functional languages like Rust or Scala within TypeScript. This involved unlearning conventional patterns (try/catch blocks, heavy IoC) to achieve atomic concurrency under massive booking contention using optimistic locking.

Leçons Apprises

The engineering ROI of this strictness is immense. Treating failures as a formal mathematical contract rather than an implementation detail results in a bulletproof, decoupled system.