MechanicShop
v1.0 Production ReadyEnterprise Auto Repair Shop Management System (.NET 10 & Angular 21 SSR)
Architected with Clean Architecture and CQRS via MediatR to orchestrate high-concurrency workflows across repair bays, mechanics, and work orders. Features complete RBAC, real-time SignalR notifications, QuestPDF billing generation, and zero-exception control flow.
Result Pattern with Domain Errors
Replaced costly exception-based error handling with strongly typed Result<T> monads, yielding deterministic execution pipelines and zero unexpected 500 runtime crashes.
Bay Allocation & Conflict Engine
Work order state machine (Scheduled → InProgress → Completed/Cancelled) with spot collision detection, timezone calculations, and automated background cancellations.
L1 In-Memory + L2 PostgreSQL
Multi-tiered caching strategy preventing stampedes on high-volume repair task lookups while retaining distributed cache consistency across container app replicas.
// Custom Result<T> Monad — Deterministic Control Flow Without Exception Overhead
public readonly struct Result<TValue>
{
private readonly TValue? _value;
public bool IsSuccess { get; }
public Error Error { get; }
public TValue Value => IsSuccess
? _value!
: throw new InvalidOperationException("Cannot access value of a failed result.");
private Result(TValue value)
{
IsSuccess = true;
_value = value;
Error = Error.None;
}
public static Result<TValue> Success(TValue value) => new(value);
public static Result<TValue> Failure(Error error) => new(error);
}