algomiBlogs
← All posts

Algomi Architecture, Part 1: The Backbone Every Product Shares

Algomi Research · Created 2026-09-26 · Updated 2026-10-15 · System Design

Algomi Architecture · Part 1 of 2
Algomi Architecture, Part 2: Trading, Insights, Charts, Career, and the AI Guardrails
Page 1 of 1

This is Part 1 of a two-part case study: one real platform, taken apart piece by piece. Part 1 covers the backbone that every product shares: the web apps, the login, the API, the shared library, the worker, the database, and the deployment pipeline. Part 2 covers what runs on top: trading, investing insights, charts, career, and the AI guardrails.

It builds on the series overview and borrows ideas from foundations and data, networking and APIs, reliability, security, and operations, and the authentication system case study. If a word such as stateless or lease is new, those guides explain it first.

Everything below describes Algomi as it is built, from its code and design notes. Where a part is still a plan, the text says so.

1. A campus with one ID card

Picture a school campus. There is a library, a sports hall, a science lab, and an art room. Each building has its own staff and its own rules. But every student carries one ID card that opens every door. There is one front office that answers questions and keeps the records. And at the back, a caretaker stays on shift with the keys and the alarm panel, but only during school hours.

Algomi is built like that campus.

  • The buildings are five web apps: the suite home and admin console, Trade and Invest, Career, Charts, and this Blogs site.
  • The ID card is one login that works in all of them.
  • The front office is one API (application programming interface) service. It decides what is allowed and talks to the database.
  • The records room is one MySQL database.
  • The caretaker is a worker service. It holds long-lived connections to brokers and Telegram and runs scheduled jobs.

Where the analogy stops: a school guard can be talked into letting someone in. Algomi's "ID card" is a signed cookie that a computer checks the same way every time, and, as section 4 shows, signed does not mean secret.

Algomi is a multi-product platform for Indian markets: signal-driven trading through several brokers, investing insights, an AI career copilot, and charting with backtesting. Section 2 ends with the whole platform in one picture.

A few words we will use:

Word Meaning here
Stateless A service that keeps nothing important in its own memory between requests, so any copy can answer any request
Worker A background service that keeps running to hold connections and run jobs, instead of answering one request and stopping
WebSocket A connection that stays open so the other side can push updates instantly
Lease A claim on a job that expires unless it is renewed, so a crashed owner loses it automatically
Wheel A packaged, versioned Python library, installed with pip

2. Meet the pieces

Piece Runs as Job
Suite (algomi-suite) Next.js on Cloud Run at algomi.in and admin.algomi.in Home, login, pricing, AI settings, admin console
Trade and Invest (algomi-fi) One Next.js service on trade. and invest. hosts Broker connections, signals, orders, holdings, screener, insights
Career (algomi-career) Next.js service Resume builder, job feed, copilot, mock interviews
Charts (algomi-charts) Next.js service Charts, Pine scripts, backtests, Strategy Lab
Blogs (algomi-blogs) Next.js service This site
API (algomi-api) FastAPI on Python 3.12 (gunicorn with uvicorn workers) All business rules, through 33 routers
Worker (algomi-worker) FastAPI control app plus background threads, private WebSockets, Telegram listener, schedulers, alert engine
UI package (@algomi-suite/ui) npm package on a private registry The shared header, product switcher, and theme toggle
Shared library (algomi-shared) Python wheel built from the API repository Database access, broker adapters, jobs, the Pine interpreter, the scanner

The rule of thumb: screens draw, the API decides, the worker holds connections, the database remembers.

Here is the whole campus in one picture, with every piece from the table in its place:

Algomi overall architectureSystem design diagram of the Algomi platform, following one trade signal. 1: a signal arrives from Telegram or TradingView at the worker’s Telegram listener. 2: the listener hands it to the jobs and signals code in the shared library. 3: that code places the order through the broker adapters. 4: the adapter calls the broker’s API. 5: the order is recorded in MySQL through the database models. Users reach their web app over HTTPS, and each web app calls its own part of the API service; the trading app is shown. The API and the worker call each other with a signed ID token. API routers and worker jobs call into the shared library in process: database models for MySQL, the Pine and portfolio engines, and the AI gateway for model providers. Billing calls Razorpay. Only the main paths are drawn: career search also calls job boards, scanners read market data, and narration audio is cached in Cloud Storage. USERS WEB APPS Next.js, one Cloud Run service each API SERVICE FastAPI, stateless, 33 routers WORKER SERVICE private, max one SHARED LIBRARY algomi-shared, one versioned wheel DATA EXTERNAL SERVICES Traders and investors Job seekers Readers Admin Suite and admin algomi.in, admin. Trade and Invest trade., invest. Career career. Charts charts. Blogs blogs. Accounts, auth, billing Trade: signals, orders, risk Invest and Insights Career Charts and Pine Blogs, admin, AI settings Scheduler and job catalog Telegram listener Broker order sockets Pine alert engine Database and models stores, leases, manifest Broker adapters Fyers, Kite, Dhan, Delta Jobs and scanner investor, breakout, signals Pine, options, portfolio interpreter, backtests AI gateway PII guard, cache, crypto MySQL on Cloud SQL one shared database Cloud Storage narration audio cache Brokers Fyers, Kite, Dhan, Delta, Shark Telegram, TradingView signals arrive here Market data Binance, Yahoo Finance AI model providers OpenAI-style, Anthropic Job boards job data APIs Razorpay payments signal 1 parse, check risk 2 order 3 broker API 4 5 SQL HTTPS /api ID token AI calls models alerts billing call internal, ID token request path service async, workers, queue data store security, network people, apps, external
Follow the numbers for one trade signal; only the main paths are drawn. Arrows into the shared library are in-process calls; arrows out of it are network calls. Solid arrows are calls, dashed arrows are internal service-to-service calls.

You've reached the free preview of this post.

Subscribe to the Blogs plan (₹99/mo) — or use any Algomi Suite, Career, Investor, or Trader plan — to keep reading.

See plans

Sources

Algomi Architecture · Part 1 of 2
Algomi Architecture, Part 2: Trading, Insights, Charts, Career, and the AI Guardrails