algomiBlogs

Algomi Blogs

System design, AI engineering, databases, networking, concurrency and more, written for engineers building real trading and fintech systems — part of the Algomi Suite.

AllSystem DesignAI Solutions Architecture & AI EngineeringInterview Questions (61)
Browse by topic (29)
AI Engineering (7)Java (7)Distributed Systems (6)Reliability (6)Security (6)AI Agents (5)Caching (5)Concurrency (4)Databases (4)Low-Level Design (4)Messaging (4)Networking (4)Streaming (4)APIs (3)Architecture (3)Consistency (3)Design Patterns (3)Harness Engineering (3)Observability (3)RAG (3)Transactions (3)Agent Memory (2)Capacity Planning (2)Enterprise Architecture (2)Fintech (2)Kafka (2)Machine Coding (2)Storage (2)Tool Use (2)
Part 24 of 28

LLM Serving Infrastructure and Capacity Planning: SLOs, Parallelism, and Autoscaling

Turning the mechanics of LLM inference into a capacity plan: TTFT and tokens-per-second targets, how many GPUs a model needs, tensor and pipeline parallelism, prefix caching, speculative decoding, serving engines, streaming, and autoscaling.

Created 2026-09-29 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

Part 25 of 28

Vector Search and Production RAG: ANN Indexes, Multi-Tenancy, Freshness, and Evaluation

How approximate nearest neighbour indexes (HNSW, IVF, product quantisation) work and trade recall for speed, then the production concerns the basic RAG guide skips: permission-aware retrieval, multi-tenancy, real-time updates, hybrid search, and RAG evaluation.

Created 2026-09-29 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

Part 26 of 28

Agent Patterns: State Machines, Memory, and Tool Safety

The design patterns behind reliable LLM agents: ReAct and plan-and-execute loops, agents as explicit state machines, the memory taxonomy, multi-agent trade-offs, and the safety rules for tools that change the world.

Created 2026-09-29 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

Part 27 of 28

AI Security, Reliability, and Cost Control: Prompt Injection, Failover, and Budgets

Defending LLM applications against prompt injection and token exhaustion, keeping them up with provider failover, circuit breakers and graceful degradation, and keeping the bill predictable with budgets, routing, and caching.

Created 2026-09-29 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

Part 28 of 28

AI System Design Case Studies and the Interview Framework

An eight-step framework for AI system design interviews, applied to eleven case studies: enterprise ChatGPT, coding assistant, AI search, knowledge assistant, support AI, document search, AI gateway, multi-model platform, agent platform, and evaluation and observability platforms.

Created 2026-09-29 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

Part 1 of 3

Harness Engineering: Making AI Agents Repeatable

Prompts tell an agent what to do; a harness decides what it knows, what it may touch, and what counts as done. Five subsystems, the session lifecycle, and a working Java shift-handover model, told as a hospital night ward.

Created 2026-10-02 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

Part 2 of 3

Agent Loops, Maker-Checker, Skills and Tool Gateways

How to turn repeated prompting into a controlled loop: goal loops, a separate checker, retry budgets, state kept outside the loop, reusable skills, and a tool gateway with permissions, timeouts and idempotency. Told as a child doing homework.

Created 2026-10-02 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

Part 3 of 3

Agent Graphs, Isolation, Rollback and Harness Evaluation

When one loop is not enough: model the workflow as a graph, fan work out and back in, isolate parallel agents, roll back on failure, gate risky steps on a human, and measure the harness with ablation tests. Told as building a house.

Created 2026-10-02 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

Enterprise MCP Gateway: One Front Door for Thousands of AI Agent Tools

Why a company with hundreds of MCP servers needs a gateway, and how a control plane, a data plane, tool-level authorization, progressive discovery and response projection work, using Uber's published MCP Gateway as a case study.

Created 2026-10-04 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

Multi-Tenant RAG: Retrieving the Right Answer from the Right Customer

How to stop one company's documents leaking into another company's answers: tenant isolation at ingestion, retrieval, context assembly and caching, and how to choose between a shared index, namespaces and dedicated indexes.

Created 2026-10-04 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

Agent Architecture: Designing AI Systems That Take Actions, Not Just Answers

The agent loop, designing tools the model can actually use correctly, reactive versus planned execution, memory and compaction, multi-agent orchestration, and the guardrails that keep an acting AI safe.

Created 2026-09-18 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

LLM Serving and Inference Cost: What Actually Determines Latency and Price

Why a demo that works for one user can collapse at scale — prefill vs. decode, the KV cache, continuous batching, PagedAttention, quantization, caching, and a worked cost estimate.

Created 2026-09-18 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

RAG System Design: How to Ground an AI's Answers in Your Own Data

Why a fluent AI answer can still be wrong — chunking, embeddings, hybrid search and reranking, and when retrieval beats fine-tuning or a bigger context window.

Created 2026-09-18 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering

AI Evals and Observability: How to Check Whether an AI Actually Works

Why a fluent AI answer isn't proof of success — evals, traces, groundedness, graders, and the release checks that catch failures a good average score would hide.

Created 2026-09-16 · Updated 2026-10-15 · AI Solutions Architecture & AI Engineering