01 / PORTAFOLIO
Backend Engineering en Acción

SISTEMAS

EN PROD.

APIs, plataformas internas, bots y sistemas de pago construidos para producción. Arquitectura pensada para crecer.

8
Proyectos
activos
7+
Años de
experiencia
20+
Proyectos
construidos
100%
En
producción
01
Live · t.me/TrelkBot
Abrir demo
Telegram Bot · Ecosistema principal

Trelk Bot

+30 comandos, gamificación (XP/logros/streaks), i18n es/en, tiers Free/Pro y router O(1). Arquitectura de 3 colas por prioridad con workers separados y ACK <50ms.

Arquitectura
@TrelkBot  ->  Fastify HTTPS  ACK <50ms
                         |
               Dispatcher  ->  BullMQ
                         |
     +-------------------+-------------------+
  critical (x2)   normal (CPU×2)   heavy (CPU)
    30s              60s               5min
                         |
                  MongoDB  +  Redis
30+ Comandos
activos
TypeScript Fastify BullMQ Redis MongoDB Docker Telegram
02
Producción
CRM · Gestión de usuarios Trelk

Panel
Admin

Monorepo NestJS + React/Vite. RBAC multi-nivel, ticklers, tipificaciones y dashboard con métricas del bot.

NestJS React MongoDB JWT RBAC
05
Marketing Site · SSR

Trelk Web

SSR puro Fastify + Nunjucks. Checkout PayPal inline, Redis cache, 15+ páginas, i18n.

Fastify Nunjucks Redis PayPal Nginx
03
Producción
Plataforma Omnicanal de Soporte

Trelk
Support

Fastify + Socket.io, smart routing con scoring multi-criterio, automation engine IF/THEN, flow engine visual y broadcast por segmentos MongoDB.

Arquitectura
Telegram + WebChat  (adapters)
              |
  Smart Routing  ->  Agent Scoring
    idioma · capacidad · skills
              |
  Automation Engine  +  Flow Engine
              |
     MongoDB  ·  Redis  ·  Socket.io
4 Workers
async
Fastify TypeScript Socket.io MongoDB Redis React Telegram
04
Producción
Payment Engine · Trelk Pro

Payments
Engine

NestJS API + Worker separados. Idempotencia doble capa (Redis + MongoDB atómico), DLQ, 5 reintentos con backoff exponencial.

Flujo
PayPal Webhook  ->  HMAC check
                       |
      NestJS API  ACK <100ms
                       |
           BullMQ  (conc: 5, 200/s)
                       |
  Idempotency: Redis + MongoDB atomic
                       |
     SubscriptionService  · Telegram notify
0 Duplicados
garantizado
NestJS BullMQ PayPal SDK Redis MongoDB Docker
07
Producción
REST API · NestJS + Fastify · trelk.xyz

Trelk
API v2

API REST unificada del ecosistema. Auth JWT + API Key, webhooks propios /corehooks/:id, throttling por ruta, Pino logging y Swagger docs.

Arquitectura
NestJS + Fastify  trelk.xyz
         |
  Auth: JWT + ApiKey + Blacklist
         |
  /v1/api: downloader · tools · IA
  /v1/corehooks: receiver + CRUD
         |
  ValidationPipe  · RequestId · Pino
3 Auth
strategies
NestJS Fastify TypeScript JWT MongoDB Redis Swagger
08
Producción
Telegram Mini App · Backend

Trelk
Mini App

Backend de la Mini App oficial dentro de Telegram. Auth initData HMAC-SHA256, 30+ módulos, gamificación con 18 logros, reviews, SSE y 15 idiomas.

Módulos
initData HMAC-SHA256  +  replay guard
              |
  gamification (XP · logros · streaks)
  reviews + moderation + suggestions
  favorites · search · notifications
              |
  SSE realtime  ·  i18n 15 idiomas
30+ Módulos
NestJS
NestJS Telegram TypeScript SSE MongoDB Redis i18n×15
06
Producción
Worker Pool · Infraestructura

Trelk Workers

Proceso separado del bot. Dispatcher clasifica por prioridad → 3 colas BullMQ + DLQ. ACK <50ms. Prometheus metrics para Grafana.

critical (x2, 30s) normal (CPU×2, 60s) heavy (CPU, 5min) DLQ Prometheus BullMQ Redis
RESTRICTED ACCESS

Lo que ves
es el 20%.

Decisiones de arquitectura, diagramas de sistema, trade-offs descartados, benchmarks y razonamientos de diseño — ninguno está en el repo público.

Request architecture brief
architecture.private
$ ls -la /projects/trelk/private/

drwxr-x---  decision-log/
drwxr-x---  adr/                # Architecture Decision Records
drwxr-x---  benchmarks/
drwxr-x---  diagrams/           # C4 model · sequence · ER
drwxr-x---  load-tests/
----------   .env.production     # (obvio)

$ cat adr/0012-bullmq-vs-kafka.md
Permission denied
8 sistemas en producción
3+ años de ADRs documentados
0 repos públicos con código de producción