Projects
A selection of things I've built. Each one taught me something new.
IoT Building Management Platform — Rubidex
Multi-tenant platform managing 10,000+ connected devices across 1,000+ buildings
As a backend engineer at Rubidex, I drive the evolution of a multi-tenant IoT Building Management System that monitors and controls 10,000+ connected devices across 1,000+ buildings, contributing 1,300+ production commits to a microservices architecture built on NestJS, PostgreSQL, InfluxDB, Redis, and Kubernetes. My work spans the full backend surface: real-time device telemetry over MQTT, distributed job processing with BullMQ, live multi-user synchronization via WebSockets, and the cloud infrastructure that keeps it all running. Because this is a commercial platform, the code is private — but the architecture decisions below show how I approach systems at this scale.
Work Order & Commissioning Engine
Architected an end-to-end engine with a 9-stage state machine, event-driven approval chains, and a UTC-normalized cron recurrence scheduler. Batched dataset processing in chunks of 50 via Promise.all to keep memory flat under load.
Real-Time IoT Evaluation
Built a live evaluation engine that validates IoT sensor thresholds against configurable checklist conditions. Added Redis caching for latest-telemetry state, eliminating database round-trips entirely during large-scale evaluations.
Distributed Real-Time Sync
Designed a Socket.io gateway with organization-scoped rooms for multi-user synchronization, using server-to-client ACKs to support optimistic UI rollbacks. Replaced legacy reservation schedulers with BullMQ, eliminating double-transaction risk under peak concurrency.
Security & Infrastructure
Designed a 2FA-gated delete-token guard for destructive database operations. Implemented automated nightly PostgreSQL and InfluxDB backup pipelines with Velero + Kopia, deployed via Helm on Kubernetes.
NestJSTypeScriptPostgreSQLInfluxDBRedisBullMQMQTTSocket.ioNext.jsKubernetesHelmGCPLogistics & Transportation Management Platform — OTIF
Multi-carrier quoting, AI document processing, and e-commerce fulfillment for the Mexican logistics market
At OTIF I built the core backend systems of a marketplace-style Transportation Management System (TMS) connecting shippers with 50+ carrier companies across Mexico. Over 2.5 years I owned systems end to end: a high-concurrency quoting engine aggregating REST and legacy XML carrier APIs in parallel, an AI-powered document pipeline processing ~500 legal documents daily on GCP Vertex AI, and a white-label fulfillment platform integrated with Shopify. The common thread across all of it: taking slow, manual logistics operations and turning them into automated, real-time systems.
AI Document Processing Pipeline
Architected an asynchronous carrier-onboarding pipeline using GCP Vertex AI and BullMQ to process ~500 complex legal documents daily (incorporation acts, government permits). Designed zero-shot, layout-aware prompts that isolate official stamps and signatures and validate extracted text against form entries, returning structured JSON in under 2 seconds. Built a human-in-the-loop exception framework that auto-routes low-confidence cases (~1% anomaly rate) to executive dashboards with full AI context preserved.
High-Concurrency Quoting Engine
Engineered a parallelized aggregator querying 50+ global (REST) and legacy domestic (XML) carrier APIs simultaneously. Implemented a 30-second aggregation timeout with circuit-breaker behavior to isolate slow third-party endpoints and deliver available quotes immediately instead of blocking on the slowest carrier.
Stateless Architecture & Anti-Scraping
Reduced database load by embedding volatile quote-matrix data into signed, stateless JWT payloads — eliminating write bloat from unfulfilled quote requests. Post-payment, payloads are decoded to generate PDF shipping guides, with third-party tracking identifiers masked behind an inter-mapping layer to prevent endpoint scraping.
E-Commerce Fulfillment Automation
Designed a white-label inventory system using Shopify webhooks for real-time multi-warehouse stock sync. Automated end-to-end fulfillment: least-cost carrier routing on order detection, instant label generation, and async push notifications to client SPAs and mobile apps.
Marketplace Pricing Algorithm
Built a statistical filtering algorithm that computes optimized freight-lane rates (e.g., CDMX → Monterrey) by trimming top- and bottom-end pricing outliers, serving clean, competitive market averages to the marketplace.
Node.jsTypeScriptExpressPostgreSQLBullMQGCP Vertex AIJWTShopify WebhooksREST/XML integrationsReal-Time Multiplayer Board Game — Poleana
Co-founder & full-stack engineer · 2025 – Present · Live at poleanamx.com
Poleana is a real-time multiplayer board game I co-founded, built from scratch, and operate in production. I lead engineering end to end — architecture, backend, frontend, algorithms, and infrastructure — and I'm responsible for 83% of all lifetime commits (~590 of 710). It's the project that best shows how I ship a complete product on my own.
Architecture & Monorepo Design
Architected a full-stack TypeScript monorepo (Turborepo) connecting a NestJS WebSocket gateway with a Next.js frontend, sharing domain models and validation logic via a private internal package.
Dual-Database State Engine
Designed a hybrid storage engine utilizing Firestore for low-latency live game-state synchronization across 4 concurrent players and PostgreSQL for durable transactional persistence.
Infrastructure Optimization
Eliminated Redis/RabbitMQ infrastructure overhead by engineering a custom PostgreSQL-backed job queue using FOR UPDATE SKIP LOCKED for safe concurrent workers, alongside an UNLOGGED table for high-throughput rate limiting at zero additional cost.
Algorithmic Engineering & AI
Implemented a tree-based path validation algorithm to enforce movement capture rules across a 112-position board. Built an autonomous AI bot system using a points-based scoring matrix to guide strategic decision-making with configurable difficulty levels.
End-to-End Product Ownership
Delivered the entire frontend experience featuring real-time board rendering, transport-layer resolved i18n (EN/ES), full SEO optimization (canonical tags, OpenGraph), and anonymous player sessions to eliminate signup friction.
TypeScriptTurborepoNestJSNext.jsWebSocketsFirestorePostgreSQLPlay at poleanamx.com