# Huudot: Online Vehicle Auction Platform

_Full-stack SaaS · real-time bidding, sales & tax engine · 2025 → present_

> Production-grade online vehicle auction SaaS with real-time WebSocket bidding over Valkey pub/sub, the full bid to sale to payment to shipping lifecycle, an EU VAT engine, and a Kubernetes stack built with Pulumi and Garden.

Team: [Atte Jauhiainen](https://azsh.fi/portfolio/people/atte-jauhiainen), [Oula Kuuva](https://azsh.fi/portfolio/people/oula-kuuva)
Tags: Fullstack Development, Software Architecture, Real-time Systems, Distributed Systems, Concurrency, Cloud Platforms, DevOps, Infrastructure as Code, Observability, Product Development, Go, Echo, GORM, PostgreSQL, Valkey, Asynq, WebSockets, TypeScript, Next.js, React, Tailwind CSS, Radix UI, Kubernetes, Pulumi, Garden.io, Traefik, MinIO, OpenTelemetry, Docker
Source: https://azsh.fi/portfolio/projects/huudot-online-vehicle-auction-platform

Full-stack online vehicle auction platform. Sellers list inspected vehicles, buyers place live bids in real time, and the system carries a listing all the way from bid → sale → payment → shipping quote, with tax rules that adapt to the buyer's jurisdiction.

![auctions](https://prod-behind-azsh-424i.encr.app/static/projectimages/huudot-auctions.webp)

## Scope

Built as production-grade SaaS: multi-environment (local / dev / preview / staging / prod), fully observable, running on a hardened Kubernetes stack with automated backups, point-in-time recovery and infrastructure-as-code from the ground up.

## 1 · product surface

Real-time auction feed with bidding, "ending soon" notifications, favourites and reserve prices. VIN-based vehicle lookup and enrichment (accessories & service history via third-party APIs). Inspection workflow with structured condition reports and image uploads. Sales & payment lifecycle after an auction ends, including a reserve-not-met negotiation flow. Shipping cost estimation via a third-party integration. Admin dashboards for users, auctions, sales, sales fees, companies and partner shops. Localization throughout.

![sell vehicle](https://prod-behind-azsh-424i.encr.app/static/projectimages/huudot-sell-vehicle.webp)

![admin dashboard](https://prod-behind-azsh-424i.encr.app/static/projectimages/huudot-admin-dashboard.webp)

## 2 · real-time bidding pipeline

Custom WebSocket hub groups clients per auction "room" and keeps a single Valkey pub/sub subscription per room, which avoids N*N fan-out when many clients watch the same auction. Per-connection write mutexes, ping/pong keepalives, origin allowlisting and read-size limits prevent memory abuse. The client reconnects with exponential back-off and jitter; the server tears down rooms cleanly on unexpected subscription failures.

## 3 · correctness under concurrency

Auction closing prevents duplicate Sale/Payment rows if two workers race. Task re-enqueue happens outside the DB transaction, so Redis/Valkey never gets a write against an uncommitted transaction. "Auction ending soon" tasks carry the expected end time and skip themselves if the auction has been rescheduled, avoiding duplicate notification blasts.

## 4 · money & tax modelling

A dedicated tax package encodes Finnish and EU VAT rates, tax procedures (margin vs. normal) and buyer classification (domestic, foreign private, foreign company), which drives VAT calculation across EU jurisdictions. The backend computes all net/gross prices so the frontend never re-implements tax rules.

![auction detail](https://prod-behind-azsh-424i.encr.app/static/projectimages/huudot-auction-detail.webp)

## 5 · observability

OpenTelemetry end-to-end, wide-event style logging and a dedicated PII obfuscation package.

## Backend

- Go
- Echo
- GORM + PostgreSQL
- Valkey (Redis fork) for real-time bid pub/sub and as task-queue backend
- Asynq for scheduled and retriable background jobs (auction end, ending-soon notifications, email sends)
- gorilla/websocket
- MinIO Go client (S3-compatible object storage)
- OpenTelemetry SDK
- Resend (transactional email)

## Frontend

- Next.js + React
- TypeScript
- Tailwind CSS with Radix UI primitives and shadcn-style components
- Honeycomb / OpenTelemetry web SDK

## Data & storage

- PostgreSQL via the CloudNativePG operator
- UpCloud Managed Object Storage (S3-compatible)
- Barman Cloud for backups and point-in-time recovery

## Infrastructure & platform

- UpCloud Managed Kubernetes
- Pulumi (Go) + Pulumi ESC for secrets
- Garden.io for multi-env orchestration and per-stack preview environments
- Tailscale for private control-plane access
- Traefik ingress + cert-manager
- Docker + BuildKit (cluster-buildkit builds)

---

az.sh Oy · contact@azsh.fi · +358 44 055 4838 · HTML version: https://azsh.fi/portfolio/projects/huudot-online-vehicle-auction-platform · Site index: https://azsh.fi/llms.txt
