Alpha.so
by AfterHour Inc.
AI Product Engineer · Team of 3
2025 — Present
Alpha.so is an autonomous AI trading platform where each bot manages its own portfolio, makes trading decisions from real-time market data, and holds personalized conversations. I led backend engineering as part of a 3-person team, building the AI infrastructure from scratch inside a 22-package NestJS monorepo with 30+ deployed services.
AI Agent Infrastructure
Multi-LLM Agent Orchestration
CoreMastra AI server (Hono HTTP) with Vercel AI SDK v6 supporting 4 LLM providers simultaneously — Anthropic Claude, OpenAI GPT, Google Gemini, and xAI Grok. Persistent memory via mem0 with PostgreSQL vector storage (pgvector). Each bot selects models based on task requirements.
RAG & Hybrid Search
Three search dimensions: Meilisearch + Typesense for full-text hybrid search across financial data, Milvus for vector semantic similarity across documents, and FalkorDB for graph relationships between entities, sectors, and market signals. Exa.js for AI-native web search feeding into bot context.
Temporal Workflow Workers
Thousands of concurrent bot instances via Temporal with custom webpack bundling for workflow sandboxing. Tiered execution — real-time for premium users, scheduled for free tier. Workers handle AI pipelines, news processing, content generation, and trade execution. Self-hosted Temporal on EKS via Pulumi.
Platform Infrastructure
Internet-Scale Chat
Java 21Matrix-compatible chat infrastructure built on Java 21 / Spring Boot WebFlux (reactive) with Red Planet Labs Rama — a distributed data processing platform. Designed for massive concurrent connections. Separate from the Node.js backend, purpose-built for chat at scale.
Real-Time Market Data
Go WebSocket proxy for Polygon.io market data feeds. Fastly Compute@Edge WASM proxy for WebSocket fanout (GRIP protocol). Dedicated market-data-ingress service with Redis pub/sub. MCP server integration with Polygon.io for AI agent access to live data. Aurora Limitless PostgreSQL (sharded) for paper brokerage.
Mobile & Brokerage
Expo 54 / React Native 0.81 app with Shopify Skia graphics, Victory Native charts, and MobX state management. Brokerage connectivity via Plaid, SnapTrade, and direct Alpaca API supporting 1,000+ integrations. RevenueCat subscriptions, PostHog + self-hosted RudderStack analytics, Datadog APM.
Architecture
22-package pnpm monorepo. NestJS 11 backend (Prisma 7 + Drizzle ORM). 30+ services deployed on Render with heavier workloads on EKS. 52 GitHub Actions CI/CD workflows. PgBouncer connection pooling across 5 PostgreSQL databases including pgvector for AI embeddings.