<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Durgesh</title>
    <description>The latest articles on DEV Community by Durgesh (@ai-ops).</description>
    <link>https://dev.to/ai-ops</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1242959%2F27e40993-1a2b-4f08-b7c3-56a7eef92425.png</url>
      <title>DEV Community: Durgesh</title>
      <link>https://dev.to/ai-ops</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ai-ops"/>
    <language>en</language>
    <item>
      <title>12 GitHub repos for founders to ship secure apps with AI agents.</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Fri, 27 Nov 2026 17:38:40 +0000</pubDate>
      <link>https://dev.to/ai-ops/12-github-repos-for-founders-to-ship-secure-apps-with-ai-agents-3fk9</link>
      <guid>https://dev.to/ai-ops/12-github-repos-for-founders-to-ship-secure-apps-with-ai-agents-3fk9</guid>
      <description>&lt;p&gt;12 GitHub repos for founders to ship secure apps with AI agents.&lt;br&gt;
⠀&lt;br&gt;
Open-sourced by OpenAI, Anthropic, NVIDIA, Microsoft and Cloudflare.&lt;br&gt;
⠀&lt;br&gt;
Agents help you ship in days, but they also hardcode API keys, skip auth checks, and install outdated packages. Early on, there's no security team to catch it. These repos let your agent find and fix those issues before your users notice.&lt;br&gt;
⠀&lt;br&gt;
If you're building a startup with Claude Code or Codex, save these:&lt;br&gt;
⠀&lt;br&gt;
1/ Strix (⭐ 78.2k)&lt;br&gt;
&lt;a href="https://lnkd.in/eKGhycbv" rel="noopener noreferrer"&gt;https://lnkd.in/eKGhycbv&lt;/a&gt;&lt;br&gt;
An AI hacker that attacks your running app and backs every bug with a working exploit.&lt;br&gt;
⠀&lt;br&gt;
2/ Security Audit Skill by Cloudflare (⭐ 77.5k)&lt;br&gt;
&lt;a href="https://lnkd.in/eCy9BnsQ" rel="noopener noreferrer"&gt;https://lnkd.in/eCy9BnsQ&lt;/a&gt;&lt;br&gt;
Makes your coding agent audit your entire codebase for security issues.&lt;br&gt;
⠀&lt;br&gt;
3/ Trivy (⭐ 39.7k)&lt;br&gt;
&lt;a href="https://lnkd.in/euhmxdJP" rel="noopener noreferrer"&gt;https://lnkd.in/euhmxdJP&lt;/a&gt;&lt;br&gt;
Finds vulnerable packages and risky configs across Docker images, Kubernetes, and Terraform.&lt;br&gt;
⠀&lt;br&gt;
4/ Nuclei (⭐ 33.3k)&lt;br&gt;
&lt;a href="https://lnkd.in/eRwj2zmu" rel="noopener noreferrer"&gt;https://lnkd.in/eRwj2zmu&lt;/a&gt;&lt;br&gt;
Scans your live app and servers for thousands of known vulnerabilities.&lt;br&gt;
⠀&lt;br&gt;
5/ Infisical (⭐ 30.8k)&lt;br&gt;
&lt;a href="https://lnkd.in/en3V2mzi" rel="noopener noreferrer"&gt;https://lnkd.in/en3V2mzi&lt;/a&gt;&lt;br&gt;
Open-source platform to store and manage your API keys, secrets, and certificates.&lt;br&gt;
⠀&lt;br&gt;
6/ TruffleHog (⭐ 29.7k)&lt;br&gt;
&lt;a href="https://lnkd.in/e6_NdUyy" rel="noopener noreferrer"&gt;https://lnkd.in/e6_NdUyy&lt;/a&gt;&lt;br&gt;
Spots API keys leaked in your git history and checks which ones are still active.&lt;br&gt;
⠀&lt;br&gt;
7/ SkillSpector by NVIDIA (⭐ 27.6k)&lt;br&gt;
&lt;a href="https://lnkd.in/eh2Bsnwz" rel="noopener noreferrer"&gt;https://lnkd.in/eh2Bsnwz&lt;/a&gt;&lt;br&gt;
Checks agent skills for hidden prompt injections and data leaks.&lt;br&gt;
⠀&lt;br&gt;
8/ Semgrep (⭐ 17.9k)&lt;br&gt;
&lt;a href="https://lnkd.in/eps_3jNX" rel="noopener noreferrer"&gt;https://lnkd.in/eps_3jNX&lt;/a&gt;&lt;br&gt;
Flags insecure code patterns in pull requests before they reach production.&lt;br&gt;
⠀&lt;br&gt;
9/ Codex Security by OpenAI (⭐ 14.4k)&lt;br&gt;
&lt;a href="https://lnkd.in/eacGrN5p" rel="noopener noreferrer"&gt;https://lnkd.in/eacGrN5p&lt;/a&gt;&lt;br&gt;
Finds and validates vulnerabilities in your code, then writes the fix.&lt;br&gt;
⠀&lt;br&gt;
10/ Claude Code Security Review by Anthropic (⭐ 7.1k)&lt;br&gt;
&lt;a href="https://lnkd.in/eWd5Smtg" rel="noopener noreferrer"&gt;https://lnkd.in/eWd5Smtg&lt;/a&gt;&lt;br&gt;
Checks each pull request for security issues before it gets merged.&lt;br&gt;
⠀&lt;br&gt;
11/ PyRIT by Microsoft (⭐ 5.1k)&lt;br&gt;
&lt;a href="https://lnkd.in/e3vDb5-G" rel="noopener noreferrer"&gt;https://lnkd.in/e3vDb5-G&lt;/a&gt;&lt;br&gt;
Hits your LLM app with jailbreaks and prompt injections before real attackers do.&lt;br&gt;
⠀&lt;br&gt;
12/ Comp AI (⭐ 2.1k)&lt;br&gt;
&lt;a href="https://lnkd.in/ewDmJ6ae" rel="noopener noreferrer"&gt;https://lnkd.in/ewDmJ6ae&lt;/a&gt;&lt;br&gt;
Open-source Vanta and Drata alternative that gets your company compliance-ready with AI.&lt;br&gt;
⠀&lt;br&gt;
Together they cover your code, dependencies, secrets, servers, compliance, and the agents that write it all. Run them before your next launch.&lt;br&gt;
⠀&lt;br&gt;
What did I miss?&lt;br&gt;
⠀&lt;/p&gt;

</description>
    </item>
    <item>
      <title>API GW vs ALB</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Fri, 27 Nov 2026 15:18:41 +0000</pubDate>
      <link>https://dev.to/ai-ops/api-gw-vs-alb-2977</link>
      <guid>https://dev.to/ai-ops/api-gw-vs-alb-2977</guid>
      <description>&lt;p&gt;On AWS, that question has two answers: API Gateway or an Application Load Balancer. I built with both to see where each one fits.&lt;/p&gt;

&lt;p&gt;𝗥𝗼𝘂𝘁𝗶𝗻𝗴&lt;br&gt;
 API Gateway: path + HTTP method → integration (GET /items → one Lambda, POST /items → another)&lt;br&gt;
 ALB: listener rules, mostly by path (/browse → one target group, /insert → another)&lt;/p&gt;

&lt;p&gt;𝗩𝗣𝗖&lt;br&gt;
 API Gateway: runs on AWS-managed infrastructure. There are no subnets to place it in.&lt;br&gt;
 ALB: lives in your VPC, across subnets in at least two Availability Zones.&lt;/p&gt;

&lt;p&gt;𝗔𝘂𝘁𝗵&lt;br&gt;
 API Gateway: API keys, IAM, Cognito, plus Lambda or JWT authorizers for external IdPs&lt;br&gt;
 ALB: Cognito or any OIDC-compliant IdP, handled at the listener&lt;/p&gt;

&lt;p&gt;𝗕𝗲𝘀𝘁 𝗳𝗶𝘁&lt;br&gt;
 API Gateway: REST APIs and microservices that need throttling, caching and usage plans&lt;br&gt;
 ALB: web apps, container and EC2 backends, longer-running requests (API Gateway's integration timeout defaults to 29 s)&lt;/p&gt;

&lt;p&gt;What surprised me: it isn't either/or. API Gateway can sit in front of a private ALB through a VPC Link.&lt;/p&gt;

&lt;p&gt;I'm still learning, but now I choose based on routing and auth needs, not habit.&lt;/p&gt;

&lt;p&gt;Which one do you reach for first, and why?&lt;/p&gt;

</description>
      <category>api</category>
      <category>architecture</category>
      <category>aws</category>
      <category>infrastructure</category>
    </item>
    <item>
      <title>Architecture of a large agentic AI app.</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Fri, 27 Nov 2026 02:09:36 +0000</pubDate>
      <link>https://dev.to/ai-ops/architecture-of-a-large-agentic-ai-app-1jcd</link>
      <guid>https://dev.to/ai-ops/architecture-of-a-large-agentic-ai-app-1jcd</guid>
      <description>&lt;p&gt;Architecture of a large agentic AI app.&lt;/p&gt;

&lt;p&gt;Most diagrams show "User -&amp;gt; LLM -&amp;gt; Answer". A production system needs a lot more.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Channels&lt;br&gt;
Web, mobile, Teams, Slack, APIs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;AI Gateway&lt;br&gt;
Auth, rate limits, cost tracking, caching and model routing in one place.&lt;br&gt;
Tools: Azure API Management, LiteLLM, Kong&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Orchestration&lt;br&gt;
A supervisor agent plans and hands work to specialist agents. Checkpoints so long tasks can pause and resume.&lt;br&gt;
Tools: LangGraph, Microsoft Agent Framework&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Models&lt;br&gt;
Small model first, big model when needed.&lt;br&gt;
Tools: Azure OpenAI, Gemini, Claude, open models on vLLM&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Tools&lt;br&gt;
Every system the agent touches goes through MCP. Risky actions wait for human approval.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Knowledge and memory&lt;br&gt;
RAG, GraphRAG, short-term state and long-term memory.&lt;br&gt;
Tools: Azure AI Search or Qdrant, Neo4j, Redis, Postgres&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Async backbone&lt;br&gt;
Long-running tasks run as events, not HTTP calls that time out.&lt;br&gt;
Tools: Kafka, workers on Kubernetes (AKS)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Trust layer, around everything&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Guardrails on every input and output&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Fallbacks: if a model fails, switch model. If an agent fails, hand off or go to a human&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Kill switch: stop any agent instantly, without a redeploy&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Evals, tracing and an audit log for every action&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An identity for every agent&lt;br&gt;
Tools: NeMo Guardrails, Ragas, Langfuse, OpenTelemetry&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CI/CD on cloud&lt;br&gt;
Commit -&amp;gt; Build -&amp;gt; Eval gate -&amp;gt; Canary 5% -&amp;gt; Full rollout&lt;br&gt;
If quality or cost drops, roll back automatically. Prompts and agent configs get versioned and deployed just like code.&lt;br&gt;
Tools: GitHub Actions or Azure DevOps, Docker, Helm, ArgoCD&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The model is one box. Everything around it decides whether the system works in production.&lt;/p&gt;

&lt;p&gt;What would you add?&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>architecture</category>
      <category>llm</category>
    </item>
    <item>
      <title>Thirteen layers of production AI systems.</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Tue, 24 Nov 2026 14:24:22 +0000</pubDate>
      <link>https://dev.to/ai-ops/thirteen-layers-of-production-ai-systems-476j</link>
      <guid>https://dev.to/ai-ops/thirteen-layers-of-production-ai-systems-476j</guid>
      <description>&lt;p&gt;Thirteen layers of production AI systems.&lt;/p&gt;

&lt;p&gt;1) Foundations cover tokens, embeddings, transformers, attention, positional encoding, context windows, mixture of experts, and scaling laws.&lt;/p&gt;

&lt;p&gt;2) Model behavior covers pretraining, post-training, sampling, temperature, reasoning models, test-time compute, multimodality, and hallucinations.&lt;/p&gt;

&lt;p&gt;3) Prompt engineering shapes output through system prompts, few-shot, chain-of-thought, structured outputs, self-consistency, meta-prompting, prompt caching, and optimization.&lt;/p&gt;

&lt;p&gt;4) Retrieval adds external knowledge through document parsing, chunking, vector databases, hybrid search, query rewriting, reranking, GraphRAG, and agentic RAG.&lt;/p&gt;

&lt;p&gt;5) Agents take actions through function calling, ReAct, planning, reflection, multi-agent systems, computer use, human-in-the-loop, and sandboxed execution.&lt;/p&gt;

&lt;p&gt;6) Context engineering controls the context window through compaction, memory, MCP, agent skills, subagents, just-in-time retrieval, and structured notes.&lt;/p&gt;

&lt;p&gt;7) Fine-tuning changes model behavior through SFT, LoRA and QLoRA, RLHF, DPO, GRPO, RLVR, distillation, and synthetic data.&lt;/p&gt;

&lt;p&gt;8) Inference optimization reduces cost and latency through quantization, KV caching, continuous batching, speculative decoding, FlashAttention, PagedAttention, parallelism, and prefill-decode splitting.&lt;/p&gt;

&lt;p&gt;9) Deployment turns models into services through serving engines, model routing, semantic caching, streaming, load balancing, autoscaling, fallbacks, and on-device inference.&lt;/p&gt;

&lt;p&gt;10) Evaluation measures behavior through benchmarks, LLM-as-judge, golden datasets, RAG metrics, hallucination detection, trajectory evaluation, regression tests, and online A/B tests.&lt;/p&gt;

&lt;p&gt;11) LLMOps handles observability, tracing, cost tracking, prompt versioning, feedback loops, drift monitoring, model registries, and continual learning.&lt;/p&gt;

&lt;p&gt;12) Safety and security cover guardrails, prompt injection, jailbreaks, PII redaction, red teaming, content moderation, tool permissions, and audit logs.&lt;/p&gt;

&lt;p&gt;13) Frontier patterns include decision models, harness engineering, loop engineering, recursive and contrastive LMs, verifier engineering, WebMCP, and forkable agent runs.&lt;/p&gt;

&lt;p&gt;AI engineering can no longer be described as prompting plus RAG around a model.&lt;/p&gt;

&lt;p&gt;Production systems have separate concerns for context, actions, inference, deployment, evaluation, operations, and security. Each is becoming its own engineering discipline.&lt;/p&gt;

&lt;p&gt;This tree maps the systems being built around models in 2026.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>machinelearning</category>
      <category>rag</category>
    </item>
    <item>
      <title>LLMs from scratch</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Mon, 23 Nov 2026 17:29:40 +0000</pubDate>
      <link>https://dev.to/ai-ops/llms-from-scratch-3hco</link>
      <guid>https://dev.to/ai-ops/llms-from-scratch-3hco</guid>
      <description>&lt;ol&gt;
&lt;li&gt;𝗗𝗮𝘁𝗮 𝗖𝗼𝗹𝗹𝗲𝗰𝘁𝗶𝗼𝗻 &amp;amp; 𝗣𝗿𝗲𝗽𝗿𝗼𝗰𝗲𝘀𝘀𝗶𝗻𝗴
Prepare large amounts of high-quality data for training.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step-by-step:&lt;br&gt;
• 𝗖𝗼𝗹𝗹𝗲𝗰𝘁 𝗗𝗮𝘁𝗮: Gather text from websites, books, documents, code, articles, etc.&lt;br&gt;
• 𝗘𝘅𝘁𝗿𝗮𝗰𝘁 → 𝗧𝗲𝘅𝘁: Convert PDFs, HTML, and other sources into usable text.&lt;br&gt;
• 𝗙𝗶𝗹𝘁𝗲𝗿 &amp;amp; 𝗖𝗹𝗲𝗮𝗻: Remove toxic, private, low-quality, and irrelevant content.&lt;br&gt;
• 𝗗𝗲𝗱𝘂𝗽𝗹𝗶𝗰𝗮𝘁𝗲: Remove repeated documents, paragraphs, and lines.&lt;br&gt;
• 𝗧𝗼𝗸𝗲𝗻𝗶𝘇𝗲: Convert text into smaller units called 𝘁𝗼𝗸𝗲𝗻𝘀.&lt;/p&gt;

&lt;p&gt;You now have clean, tokenized training data.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;𝗣𝗿𝗲-𝗧𝗿𝗮𝗶𝗻𝗶𝗻𝗴
Teach the model language patterns by predicting the next token.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step-by-step:&lt;br&gt;
• 𝗜𝗻𝗽𝘂𝘁 𝗧𝗼𝗸𝗲𝗻𝘀: Feed token sequences into the model.&lt;br&gt;
• 𝗧𝗿𝗮𝗻𝘀𝗳𝗼𝗿𝗺𝗲𝗿: Pass them through a decoder-only Transformer.&lt;br&gt;
• 𝗡𝗲𝘅𝘁 𝗧𝗼𝗸𝗲𝗻 𝗣𝗿𝗲𝗱𝗶𝗰𝘁𝗶𝗼𝗻: Predict what token comes next.&lt;br&gt;
• 𝗨𝗽𝗱𝗮𝘁𝗲 𝗪𝗲𝗶𝗴𝗵𝘁𝘀: Use the prediction error to adjust model parameters.&lt;br&gt;
• 𝗥𝗲𝗽𝗲𝗮𝘁: Train across massive amounts of data.&lt;/p&gt;

&lt;p&gt;The model learns language patterns, concepts, and relationships.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;𝗦𝘂𝗽𝗲𝗿𝘃𝗶𝘀𝗲𝗱 𝗙𝗶𝗻𝗲-𝗧𝘂𝗻𝗶𝗻𝗴 (𝗦𝗙𝗧)
Turn the pretrained model into an instruction-following assistant.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step-by-step:&lt;br&gt;
• 𝗜𝗻𝘀𝘁𝗿𝘂𝗰𝘁𝗶𝗼𝗻: Give the model a task or prompt.&lt;br&gt;
• 𝗛𝘂𝗺𝗮𝗻 𝗔𝗻𝘀𝘄𝗲𝗿: Provide a high-quality example response.&lt;br&gt;
• 𝗧𝗿𝗮𝗶𝗻: Show the model many instruction-answer examples.&lt;br&gt;
• 𝗙𝗶𝗻𝗲-𝗧𝘂𝗻𝗲: Update its weights using these examples.&lt;/p&gt;

&lt;p&gt;The raw predictor becomes a helpful assistant.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;𝗔𝗹𝗶𝗴𝗻𝗺𝗲𝗻𝘁
Make responses more helpful, safe, and aligned with human preferences.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step-by-step:&lt;br&gt;
• 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗲: Produce multiple possible responses.&lt;br&gt;
• 𝗛𝘂𝗺𝗮𝗻 𝗥𝗮𝗻𝗸𝗶𝗻𝗴: Humans compare and rank them.&lt;br&gt;
• 𝗟𝗲𝗮𝗿𝗻 𝗣𝗿𝗲𝗳𝗲𝗿𝗲𝗻𝗰𝗲𝘀: Learn which responses are better.&lt;br&gt;
• 𝗢𝗽𝘁𝗶𝗺𝗶𝘇𝗲: Use methods such as RLHF or DPO.&lt;/p&gt;

&lt;p&gt;The model becomes more helpful, safe, and aligned.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;𝗜𝗻𝗳𝗲𝗿𝗲𝗻𝗰𝗲 𝗢𝗽𝘁𝗶𝗺𝗶𝘇𝗮𝘁𝗶𝗼𝗻 &amp;amp; 𝗗𝗲𝗽𝗹𝗼𝘆𝗺𝗲𝗻𝘁
Make the model efficient enough for real-world use.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step-by-step:&lt;br&gt;
• 𝗤𝘂𝗮𝗻𝘁𝗶𝘇𝗲 / 𝗖𝗼𝗺𝗽𝗿𝗲𝘀𝘀: Reduce model size and compute requirements.&lt;br&gt;
• 𝗢𝗽𝘁𝗶𝗺𝗶𝘇𝗲: Improve speed, latency, and cost.&lt;br&gt;
• 𝗔𝗣𝗜 𝗗𝗲𝗽𝗹𝗼𝘆𝗺𝗲𝗻𝘁: Make the model available through an API or application.&lt;br&gt;
• 𝗚𝘂𝗮𝗿𝗱𝗿𝗮𝗶𝗹𝘀: Add safety controls and access policies.&lt;br&gt;
• 𝗠𝗼𝗻𝗶𝘁𝗼𝗿𝗶𝗻𝗴: Track performance, failures, and safety issues.&lt;br&gt;
• 𝗖𝗼𝗻𝗻𝗲𝗰𝘁 𝗧𝗼𝗼𝗹𝘀: Add RAG, memory, tools, and external systems when needed.&lt;/p&gt;

&lt;p&gt;The LLM is ready for real-world applications.&lt;/p&gt;

&lt;p&gt;𝗜𝗻 𝘀𝗶𝗺𝗽𝗹𝗲 𝘁𝗲𝗿𝗺𝘀:&lt;br&gt;
𝗗𝗮𝘁𝗮 → 𝗣𝗿𝗲-𝗧𝗿𝗮𝗶𝗻𝗶𝗻𝗴 → 𝗙𝗶𝗻𝗲-𝗧𝘂𝗻𝗶𝗻𝗴 → 𝗔𝗹𝗶𝗴𝗻𝗺𝗲𝗻𝘁 → 𝗗𝗲𝗽𝗹𝗼𝘆𝗺𝗲𝗻𝘁&lt;/p&gt;

&lt;p&gt;That's the basic journey from raw data to a production-ready LLM.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>19 Microservices Design Patterns</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Sun, 22 Nov 2026 17:57:18 +0000</pubDate>
      <link>https://dev.to/ai-ops/19-microservices-design-patterns-2jc2</link>
      <guid>https://dev.to/ai-ops/19-microservices-design-patterns-2jc2</guid>
      <description>&lt;p&gt;19 Microservices Design Patterns &lt;br&gt;
Microservices architecture is a design approach that structures an application as a collection of loosely coupled services.&lt;/p&gt;

&lt;p&gt;To build scalable, maintainable, and resilient microservices-based systems, various patterns have emerged.&lt;/p&gt;

&lt;p&gt;Here are essential microservices patterns you can use in your project, and also remember for system design interviews.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Service Registry&lt;/strong&gt;
Since there are many microservices in a Microservice architecture, they need to discover and communicate with each other.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A Service Registry, such as Netflix Eureka or Consul, acts as a centralized directory where services can register themselves and discover others.&lt;/p&gt;

&lt;p&gt;Here is what it looks like:&lt;/p&gt;

&lt;p&gt;Service Registry Pattern&lt;/p&gt;

&lt;p&gt;2.** API Gateway**&lt;br&gt;
An API Gateway serves as a single entry point for client applications, aggregating multiple microservices into a unified API.&lt;/p&gt;

&lt;p&gt;It handles requests, routing them to the appropriate services, and may perform tasks like authentication, authorization, and load balancing.&lt;/p&gt;

&lt;p&gt;Here is what API Gateway looks like:&lt;/p&gt;

&lt;p&gt;API Gateway&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Circuit Breaker&lt;/strong&gt;
Inspired by electrical circuit breakers, this pattern prevents a microservice failure from cascading to other services. Circuit breaker pattern monitors for failures, and if a threshold is crossed, it opens the circuit, preventing further requests.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This helps in graceful degradation and fault tolerance, and it’s absolutely must in a Microservice architecture to prevent total shutdown of your services.&lt;/p&gt;

&lt;p&gt;Here is an example of Netflix Hysrix as a Circuit breaker:&lt;/p&gt;

&lt;p&gt;Circuit Breaker&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Bulkhead&lt;/strong&gt;
In a microservices system, isolating failures is crucial. The Bulkhead pattern involves separating components or services to contain failures.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example, thread pools or separate databases for different services can be used to prevent a failure in one part of the system from affecting others.&lt;/p&gt;

&lt;p&gt;Here is a diagram showing the Bulkhead pattern in Microservices architecture:&lt;/p&gt;

&lt;p&gt;Bulkhead Pattern&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Saga Pattern&lt;/strong&gt;
This pattern is used for managing distributed transactions. The Saga pattern breaks down a long-running business transaction into a series of smaller, independent transactions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each microservice involved in the saga handles its own transaction and publishes events to trigger subsequent actions.&lt;/p&gt;

&lt;p&gt;Here is how the Saga Pattern looks in action:&lt;/p&gt;

&lt;p&gt;Saga Pattern&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Event Sourcing&lt;/strong&gt;
This is another popular pattern that is used heavily in high-frequency low-latency applications.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In this pattern, instead of storing only the current state, Event Sourcing involves storing a sequence of events that led to the current state.&lt;/p&gt;

&lt;p&gt;This pattern provides a reliable audit trail and allows for rebuilding the system state at any point in time.&lt;/p&gt;

&lt;p&gt;Here is how Event Sourcing looks in action:&lt;/p&gt;

&lt;p&gt;Event Sourcing&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Command Query Responsibility Segregation (CQRS)&lt;/strong&gt;
The CQRS Pattern separates the read and write sides of an application. It uses different models for updating information (commands) and reading information (queries).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This pattern can improve scalability, as read and write operations have different optimization requirements.&lt;/p&gt;

&lt;p&gt;Here is a nice diagram that shows the CQRS pattern:&lt;/p&gt;

&lt;p&gt;Command Query Responsibility Segregation (CQRS)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Data Sharding&lt;/strong&gt;
The database sharding pattern is used to distribute the database load and avoid bottlenecks. Data Sharding involves partitioning data across multiple databases or database instances.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In this pattern, each microservice may handle a subset of data or specific types of requests.&lt;/p&gt;

&lt;p&gt;Here is how database sharding looks, credit - Design Guru&lt;/p&gt;

&lt;p&gt;Types of Database sharding&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Polyglot Persistence&lt;/strong&gt;
Different microservices may have different data storage needs. Polyglot Persistence allows using multiple database technologies based on the requirements of each microservice, optimizing for data storage, retrieval, and query capabilities.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is a nice diagram that shows Polyglot persistence in Azure :&lt;/p&gt;

&lt;p&gt;Polyglot Persistence&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Retry&lt;/strong&gt;
In Microservice architecture, when a transient failure occurs, the Retry pattern involves retrying the operation instead of immediately failing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It can be applied at various levels, such as service-to-service communication or database interactions.&lt;/p&gt;

&lt;p&gt;Here is a nice diagram from ByteByteGo, a great place for system design learning, which shows the Retry pattern in Microservices:&lt;/p&gt;

&lt;p&gt;Retry Pattern in Microservices&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Sidecar&lt;/strong&gt;
The Sidecar pattern involves attaching a helper service (the sidecar) to the main microservice to provide additional functionalities such as logging, security, or communication with external services.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This allows the main service to focus on its core functionality.&lt;/p&gt;

&lt;p&gt;Here is what a Sidecar pattern looks like:&lt;/p&gt;

&lt;p&gt;Sidecar pattern in Microservices&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Backends for Frontends (BFF)&lt;/strong&gt;
Also known as BFF, this pattern is useful when dealing with multiple client types (e.g., web, mobile). The BFF pattern involves creating separate backend services tailored for each type of client.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This allows for optimized and specialized APIs for each client.&lt;/p&gt;

&lt;p&gt;Here is what a Backends for Frontends (BFF) pattern looks like:&lt;/p&gt;

&lt;p&gt;Backends for Frontends (BFF)&lt;/p&gt;

&lt;p&gt;14.** Shadow Deployment**&lt;br&gt;
The Shadow Deployment pattern involves routing a copy (shadow) of production traffic to a new microservice version without affecting the actual user experience.&lt;/p&gt;

&lt;p&gt;This is one of the popular deployment strategies, and it helps validate the new version’s performance and correctness.&lt;/p&gt;

&lt;p&gt;Here is what shadow deployment looks like&lt;/p&gt;

&lt;p&gt;Shadow Deployment&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Consumer-Driven Contracts&lt;/strong&gt;
In a microservices ecosystem, multiple services often interact with one another. The Consumer-Driven Contracts pattern involves consumers specifying their expectations from producers, allowing for more robust and coordinated changes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is a nice diagram that explains Consumer-Driven contracts&lt;/p&gt;

&lt;p&gt;Consumer-Driven Contracts&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Smart Endpoints, Dumb Pipes&lt;/strong&gt;&lt;br&gt;
This pattern advocates for placing business logic in microservices (smart endpoints) rather than relying on complex middleware. The communication infrastructure (pipes) should be simple and handle only message routing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Database per Service&lt;/strong&gt;&lt;br&gt;
This is another popular Microservices pattern where each microservice has its own database, and services communicate through well-defined APIs.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Database per Service pattern provides isolation but also requires careful consideration of data consistency and integrity.&lt;/p&gt;

&lt;p&gt;Here is how this pattern looks:&lt;/p&gt;

&lt;p&gt;Database per Service pattern&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Async Messaging&lt;/strong&gt;
Instead of synchronous communication between microservices, the Async Messaging pattern involves using message queues to facilitate asynchronous communication. This can improve system responsiveness and scalability.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is a nice diagram that shows the difference between sync and async messaging&lt;/p&gt;

&lt;p&gt;Async Messaging pattern&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Stateless Services&lt;/strong&gt;
Designing microservices to be stateless simplifies scalability and resilience. Each service processes a request independently, without relying on stored state, making it easier to scale horizontally.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is a nice diagram that shows the difference between Stateless Services and Stateful Services&lt;/p&gt;

&lt;p&gt;Stateless Services&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Build a Full LLM Stack Without Paying for a Single API Call</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Sat, 21 Nov 2026 14:47:36 +0000</pubDate>
      <link>https://dev.to/ai-ops/how-to-build-a-full-llm-stack-without-paying-for-a-single-api-call-5ehh</link>
      <guid>https://dev.to/ai-ops/how-to-build-a-full-llm-stack-without-paying-for-a-single-api-call-5ehh</guid>
      <description>&lt;p&gt;Relying on proprietary LLM APIs is the fastest way to prototype, but it eventually introduces three major friction points: unpredictable unit economics at scale, strict data privacy constraints, and vendor lock-in.&lt;br&gt;
Fortunately, the open-source AI ecosystem has matured to the point where you can assemble an entire, production-grade LLM architecture—from raw inference to evaluation and user interfaces—without paying a cent in third-party token fees.&lt;/p&gt;

&lt;p&gt;Here is the blueprint for a complete, self-hosted LLM stack, broken down into its eight core architectural layers and the leading open-source tools powering each.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open-Weight Models&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The foundation of your stack is the model itself. Modern open-weight models rival proprietary frontiers across coding, reasoning, and multilingual tasks, giving you the freedom to host them anywhere.&lt;br&gt;
• Qwen (Alibaba): A versatile family of models known for exceptional performance in coding, mathematics, and multilingual benchmarks.&lt;br&gt;
• DeepSeek: Renowned for strong reasoning capabilities and highly efficient Mixture-of-Experts (MoE) architectures that reduce active parameter compute.&lt;br&gt;
• Mistral: Lightweight, high-efficiency models engineered for low-latency inference and edge deployments.&lt;br&gt;
• Gemma (Google): Accessible, lightweight open models built from the same research and technology behind Gemini, ideal for resource-constrained environments.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Local Runners&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before deploying to a massive GPU cluster, you need a frictionless way to run and test models on local developer hardware.&lt;br&gt;
• Ollama: The gold standard for developer experience, offering one-line CLI commands to pull and run models locally.&lt;br&gt;
• llama.cpp: A high-performance C/C++ inference engine that enables quantized (GGUF) models to run efficiently across both CPUs and GPUs.&lt;br&gt;
• LocalAI: A drop-in, OpenAI-compatible REST API that lets you run local models without rewriting existing application code.&lt;br&gt;
• MLX LM: An array framework specifically optimized to maximize unified memory and compute on Apple Silicon.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Serving Engines&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Local runners are great for single-user testing, but production traffic requires high-throughput serving engines capable of batching concurrent requests and maximizing GPU utilization.&lt;br&gt;
• vLLM: The industry standard for high-throughput serving, utilizing PagedAttention to drastically reduce memory waste during KV caching.&lt;br&gt;
• SGLang: A fast serving engine engineered specifically for complex, multi-turn prompts and structured JSON outputs.&lt;br&gt;
• TensorRT-LLM: NVIDIA’s specialized library for compiling and optimizing models for maximum inference speed on NVIDIA hardware.&lt;br&gt;
• llm-d: A distributed inference serving framework built natively for orchestrating large-scale deployments on Kubernetes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fine-Tuning&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When prompt engineering and retrieval aren't enough, fine-tuning allows you to adapt base models to your specific domain terminology, tone, or formatting requirements.&lt;br&gt;
• Unsloth: Accelerates LoRA and QLoRA fine-tuning while significantly cutting VRAM requirements, making single-GPU training viable.&lt;br&gt;
• Axolotl: A streamlined post-training framework that abstracts away boilerplate code into clean, reproducible YAML configurations.&lt;br&gt;
• TRL (Hugging Face): A full-stack library for post-training, supporting Supervised Fine-Tuning (SFT), Direct Preference Optimization (DPO), and RLHF.&lt;br&gt;
• LLaMA-Factory: A unified fine-tuning suite that includes a zero-code web UI for managing datasets, training runs, and exports.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;AI Gateways&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;As your architecture grows to include multiple models—or a hybrid of local and cloud endpoints—an AI gateway acts as the central nervous system for traffic management and observability.&lt;br&gt;
• LiteLLM: A unified proxy that translates requests into a standardized OpenAI format across dozens of different model providers and local runners.&lt;br&gt;
• Portkey: Provides intelligent request routing, semantic caching, rate limiting, and automated fallbacks to keep applications resilient.&lt;br&gt;
• Bifrost: An ultra-low-latency AI gateway written in Go, designed to add minimal overhead to high-throughput pipelines.&lt;br&gt;
• Envoy AI Gateway: Enterprise-grade ingress and traffic management built directly on top of the battle-tested Envoy Proxy.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Vector Databases&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To ground your models in proprietary company data via Retrieval-Augmented Generation (RAG), you need a database capable of fast semantic similarity search.&lt;br&gt;
• Qdrant: A high-speed, memory-safe vector search engine written in Rust with rich metadata filtering capabilities.&lt;br&gt;
• Milvus: A distributed, cloud-native vector database engineered to handle billion-scale datasets in enterprise environments.&lt;br&gt;
• Weaviate: An AI-native database that excels at hybrid search, seamlessly combining dense vector similarity with traditional BM25 keyword matching.&lt;br&gt;
• pgvector: An open-source extension that brings vector similarity search directly into PostgreSQL, eliminating the need to manage a separate database system.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Evaluations (Evals)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Moving an LLM application to production without automated testing is a recipe for silent regressions. Evaluation frameworks help you measure accuracy, hallucination rates, and safety.&lt;br&gt;
• promptfoo: A developer-friendly CLI tool for running automated prompt regressions, comparing model outputs side-by-side, and red-teaming.&lt;br&gt;
• DeepEval: An open-source evaluation framework that brings unit-testing workflows to LLMs using research-backed metrics.&lt;br&gt;
• Ragas: A specialized evaluation suite built specifically to measure the retrieval and generation quality of RAG pipelines.&lt;br&gt;
• LM Evaluation Harness (EleutherAI): The foundational benchmarking framework used across the industry to test models against standardized academic datasets.&lt;br&gt;
• Inspect (UK AI Security Institute): An extensible framework designed for rigorous AI safety, agentic capability, and risk evaluations.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Chat Interfaces&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Finally, if you are building internal tools or need a frontend to interact with your models, you don't need to build a UI from scratch.&lt;br&gt;
• Open WebUI: A feature-rich, self-hosted web interface that includes built-in RAG support, web search integration, and role-based access control.&lt;br&gt;
• LibreChat: A highly customizable, multi-model chat platform that mirrors the familiar ChatGPT user experience for enterprise teams.&lt;br&gt;
• AnythingLLM: An all-in-one desktop and server application designed to turn local documents into workspaces for RAG and custom agents.&lt;br&gt;
• Jan: A privacy-first, offline-capable desktop client that bundles local model management into a clean interface.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>3 LLM Caching Strategies Explained!</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Wed, 18 Nov 2026 11:19:05 +0000</pubDate>
      <link>https://dev.to/ai-ops/3-llm-caching-strategies-explained-1j25</link>
      <guid>https://dev.to/ai-ops/3-llm-caching-strategies-explained-1j25</guid>
      <description>&lt;p&gt;3 LLM Caching Strategies Explained!&lt;/p&gt;

&lt;p&gt;Running LLMs in production can get expensive.&lt;/p&gt;

&lt;p&gt;Every request consumes tokens, adds latency, and requires computation.&lt;/p&gt;

&lt;p&gt;But what if your AI application could reuse work instead of repeating it?&lt;/p&gt;

&lt;p&gt;That's where caching comes in.&lt;/p&gt;

&lt;p&gt;Here are 3 essential caching strategies every AI engineer should understand:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Semantic Cache
→ Reuses answers for questions with similar meanings.
→ Uses embeddings and vector similarity search.
→ Skips LLM calls when a relevant cached answer exists.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Best for: FAQs, chatbots, and repetitive queries.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Prompt Cache
→ Reuses previously processed prompt prefixes.
→ Works with system prompts, tools, and shared context.
→ Reduces repeated input processing and latency.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Best for: Long system prompts, RAG context, and multi-turn conversations.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;KV Cache
→ Stores attention keys and values during inference.
→ Avoids recomputing previously processed tokens.
→ Speeds up autoregressive token generation.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Best for: Real-time inference and long-context generation.&lt;/p&gt;

&lt;p&gt;The key difference?&lt;/p&gt;

&lt;p&gt;→ Semantic Cache: Reuse the answer.&lt;br&gt;
→ Prompt Cache: Reuse the prompt prefix.&lt;br&gt;
→ KV Cache: Reuse attention computations.&lt;/p&gt;

&lt;p&gt;These strategies operate at different layers of the LLM stack.&lt;/p&gt;

&lt;p&gt;And when combined effectively, they can reduce inference costs, improve response times, and support scalable AI applications.&lt;/p&gt;

&lt;p&gt;Building faster AI isn't always about choosing a faster model.&lt;/p&gt;

&lt;p&gt;Sometimes, it's about avoiding unnecessary computation.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>10 Free resources for LLM engineering</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Tue, 17 Nov 2026 12:52:50 +0000</pubDate>
      <link>https://dev.to/ai-ops/10-free-resources-for-llm-engineering-32dk</link>
      <guid>https://dev.to/ai-ops/10-free-resources-for-llm-engineering-32dk</guid>
      <description>&lt;p&gt;10 free resources to learn LLM inference engineering&lt;/p&gt;

&lt;p&gt;Covering topics such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;KV cache and batching&lt;/li&gt;
&lt;li&gt;Serving engines&lt;/li&gt;
&lt;li&gt;GPU kernels and benchmarks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Start here and go in order:&lt;/p&gt;

&lt;p&gt;1) LLM Inference Handbook (Modular)&lt;br&gt;
↳ Learn the words first: prefill, decode, KV cache, latency, throughput.&lt;br&gt;
↳ A reference you keep open while you read the rest.&lt;br&gt;
&lt;a href="https://handbook.modular.com/" rel="noopener noreferrer"&gt;https://handbook.modular.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2) Continuous batching from first principles (Hugging Face)&lt;br&gt;
↳ Starts at attention and KV caching, ends at continuous batching.&lt;br&gt;
↳ Shows why mixing prefill and decode in one batch helps throughput.&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://huggingface.co/blog/continuous_batching" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fhuggingface.co%2Fblog%2Fassets%2Fcontinuous_batching%2Fthumbnail.png" height="385" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://huggingface.co/blog/continuous_batching" rel="noopener noreferrer" class="c-link"&gt;
            Continuous batching from first principles
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            We’re on a journey to advance and democratize artificial intelligence through open source and open science.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
          huggingface.co
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;3) Stanford CS336, Lecture 10: Inference (Spring 2025)&lt;br&gt;
↳ Percy Liang explains why inference is memory limited.&lt;br&gt;
↳ Then the fixes: quantization, speculative decoding and paged attention.&lt;br&gt;
  &lt;iframe src="https://www.youtube.com/embed/fcgPYo3OtV0" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;4) All About Transformer Inference (How To Scale Your Model, Google DeepMind)&lt;br&gt;
↳ The math behind latency, throughput, memory and KV caches.&lt;br&gt;
↳ Harder than the rest. Worth the extra effort.&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://jax-ml.github.io/scaling-book/inference/" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fjax-ml.github.io%2Fscaling-book%2Fassets%2Fimg%2Fdragon.png" height="283" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://jax-ml.github.io/scaling-book/inference/" rel="noopener noreferrer" class="c-link"&gt;
             All About Transformer Inference | How To Scale Your Model 
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Performing inference on a Transformer can be very different from training. Partly this is because inference adds a new factor to consider: latency. In this section, we will go all the way from sampling a single new token from a model to efficiently scaling a large Transformer across many slices of accelerators as part of an inference engine.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fjax-ml.github.io%2Fscaling-book%2Fassets%2Fimg%2Ffavicon.ico%3F40fa984da00a7d776e79162fb29402f2" width="48" height="48"&gt;
          jax-ml.github.io
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;5) MIT 6.5940 EfficientML (Fall 2024, Song Han)&lt;br&gt;
↳ Watch the quantization lectures and Lecture 13 on LLM deployment.&lt;br&gt;
↳ Slides and videos sit on the course page.&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://hanlab.mit.edu/courses/2024-fall-65940" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;hanlab.mit.edu&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;6) Inside vLLM (Aleksa Gordić)&lt;br&gt;
↳ Scheduling, paged attention, prefix caching, speculative decoding, multi-GPU serving.&lt;br&gt;
↳ Based on the vLLM V1 engine at one August 2025 commit, so some code has moved since.&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://www.aleksagordic.com/blog/vllm" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;aleksagordic.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;7) Mini-SGLang (SGLang project)&lt;br&gt;
↳ A compact serving engine with radix cache, chunked prefill and overlap scheduling.&lt;br&gt;
↳ Reading the code is free. Running it needs Linux and an NVIDIA GPU with CUDA.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/sgl-project" rel="noopener noreferrer"&gt;
        sgl-project
      &lt;/a&gt; / &lt;a href="https://github.com/sgl-project/mini-sglang" rel="noopener noreferrer"&gt;
        mini-sglang
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A compact implementation of SGLang, designed to demystify the complexities of modern LLM serving systems.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;
&lt;a rel="noopener noreferrer" href="https://github.com/assets/logo.png"&gt;&lt;img width="400" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fassets%2Flogo.png"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Mini-SGLang&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;A &lt;strong&gt;lightweight yet high-performance&lt;/strong&gt; inference framework for Large Language Models.&lt;/p&gt;




&lt;p&gt;Mini-SGLang is a compact implementation of &lt;a href="https://github.com/sgl-project/sglang" rel="noopener noreferrer"&gt;SGLang&lt;/a&gt;, designed to demystify the complexities of modern LLM serving systems. With a compact codebase of &lt;strong&gt;~5,000 lines of Python&lt;/strong&gt;, it serves as both a capable inference engine and a transparent reference for researchers and developers.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;✨ Key Features&lt;/h2&gt;
&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;High Performance&lt;/strong&gt;: Achieves state-of-the-art throughput and latency with advanced optimizations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lightweight &amp;amp; Readable&lt;/strong&gt;: A clean, modular, and fully type-annotated codebase that is easy to understand and modify.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advanced Optimizations&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Radix Cache&lt;/strong&gt;: Reuses KV cache for shared prefixes across requests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chunked Prefill&lt;/strong&gt;: Reduces peak memory usage for long-context serving.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overlap Scheduling&lt;/strong&gt;: Hides CPU scheduling overhead with GPU computation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tensor Parallelism&lt;/strong&gt;: Scales inference across multiple GPUs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optimized Kernels&lt;/strong&gt;: Integrates &lt;strong&gt;FlashAttention&lt;/strong&gt; and &lt;strong&gt;FlashInfer&lt;/strong&gt; for maximum efficiency.&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🚀 Quick Start&lt;/h2&gt;

&lt;/div&gt;


&lt;blockquote&gt;

&lt;p&gt;&lt;strong&gt;⚠️ Platform Support&lt;/strong&gt;: Mini-SGLang currently supports…&lt;/p&gt;


&lt;/blockquote&gt;&lt;/div&gt;
&lt;br&gt;
  &lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/sgl-project/mini-sglang" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;8) GPU MODE Lectures&lt;br&gt;
↳ Start with Lectures 1, 3 and 4: profiling, getting started with CUDA, compute and memory architecture.&lt;br&gt;
↳ The repo has the code and slides. The recordings are on their YouTube channel.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/gpu-mode" rel="noopener noreferrer"&gt;
        gpu-mode
      &lt;/a&gt; / &lt;a href="https://github.com/gpu-mode/lectures" rel="noopener noreferrer"&gt;
        lectures
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Material for gpu-mode lectures
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Supplementary Material for Lectures&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://discord.gg/gpumode" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/c71fb6881b7259d5404d7afd26ebbc99e2f0e4a4e50d14b88e7335d24e69f606/68747470733a2f2f646362616467652e76657263656c2e6170702f6170692f7365727665722f6770756d6f64653f7374796c653d666c6174" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.youtube.com/@GPUMODE" rel="nofollow noopener noreferrer"&gt;YouTube Channel&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The PMPP Book: &lt;a href="https://a.co/d/2S2fVzt" rel="nofollow noopener noreferrer"&gt;Programming Massively Parallel Processors: A Hands-on Approach&lt;/a&gt; (Amazon link)&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Lecture 1: Profiling and Integrating CUDA kernels in PyTorch&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Speaker: &lt;a href="https://twitter.com/marksaroufim" rel="nofollow noopener noreferrer"&gt;Mark Saroufim&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Notebook and slides in &lt;a href="https://github.com/gpu-mode/lectures/./lecture_001/" rel="noopener noreferrer"&gt;lecture_001&lt;/a&gt; folder&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Lecture 2: Recap Ch. 1-3 from the PMPP book&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Speaker: &lt;a href="https://twitter.com/neurosp1ke" rel="nofollow noopener noreferrer"&gt;Andreas Koepf&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Slides: The powerpoint file &lt;a href="https://github.com/gpu-mode/lectures/./lecture_002/cuda_mode_lecture2.pptx" rel="noopener noreferrer"&gt;lecture_002/cuda_mode_lecture2.pptx&lt;/a&gt; can be found in the root directory of this repository. Alternatively &lt;a href="https://docs.google.com/presentation/d/1deqvEHdqEC4LHUpStO6z3TT77Dt84fNAvTIAxBJgDck/edit#slide=id.g2b1444253e5_1_75" rel="nofollow noopener noreferrer"&gt;here&lt;/a&gt; as Google docs presentation.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Lecture 3: Getting Started With CUDA&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Speaker: &lt;a href="https://twitter.com/jeremyphoward" rel="nofollow noopener noreferrer"&gt;Jeremy Howard&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Notebook: See the &lt;a href="https://github.com/gpu-mode/lectures/./lecture_003/" rel="noopener noreferrer"&gt;lecture_003&lt;/a&gt; folder, or run the &lt;a href="https://colab.research.google.com/drive/180uk6frvMBeT4tywhhYXmz3PJaCIA_uk?usp=sharing" rel="nofollow noopener noreferrer"&gt;Colab version&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Lecture 4: Intro to Compute and Memory Architecture&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Speaker: &lt;a href="https://lernapparat.de/" rel="nofollow noopener noreferrer"&gt;Thomas Viehmann&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Notebook and slides in the &lt;a href="https://github.com/gpu-mode/lectures/./lecture_004/" rel="noopener noreferrer"&gt;lecture_004&lt;/a&gt; folder.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Lecture 5: Going Further with CUDA for Python Programmers&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Speaker: &lt;a href="https://twitter.com/jeremyphoward" rel="nofollow noopener noreferrer"&gt;Jeremy Howard&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Notebook in the &lt;a href="https://github.com/gpu-mode/lectures/./lecture_005/" rel="noopener noreferrer"&gt;lecture_005&lt;/a&gt; folder.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Lecture 6: Optimizing PyTorch Optimizers&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Speaker: &lt;a href="https://github.com/janeyx99" rel="noopener noreferrer"&gt;Jane Xu&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.google.com/presentation/d/13WLCuxXzwu5JRZo0tAfW0hbKHQMvFw4O/edit#slide=id.p1" rel="nofollow noopener noreferrer"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Lecture 7: Advanced Quantization&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Speaker: &lt;a href="https://github.com/HDCharles" rel="noopener noreferrer"&gt;Charles Hernandez&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.dropbox.com/scl/fi/hzfx1l267m8gwyhcjvfk4/Quantization-Cuda-vs-Triton.pdf?rlkey=s4j64ivi2kpp2l0uq8xjdwbab&amp;amp;dl=0" rel="nofollow noopener noreferrer"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Lecture 8: CUDA Performance Checklist&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Speaker: &lt;a href="https://github.com/msaroufim" rel="noopener noreferrer"&gt;Mark Saroufim&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code in…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/gpu-mode/lectures" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;9) Triton Tutorials (official docs)&lt;br&gt;
↳ Go from vector addition to fused softmax, matrix multiplication and fused attention.&lt;br&gt;
↳ Each tutorial is runnable code you can download.&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://triton-lang.org/main/getting-started/tutorials/index.html" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;triton-lang.org&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;10) AIPerf (NVIDIA)&lt;br&gt;
↳ Measure time to first token, inter token latency, throughput and goodput.&lt;br&gt;
↳ Its guides cover trace replay, so you can test with real traffic patterns.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/ai-dynamo" rel="noopener noreferrer"&gt;
        ai-dynamo
      &lt;/a&gt; / &lt;a href="https://github.com/ai-dynamo/aiperf" rel="noopener noreferrer"&gt;
        aiperf
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      AIPerf is a comprehensive benchmarking tool that measures the performance of generative AI models served by your preferred inference solution.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;AIPerf&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://pypi.org/project/aiperf/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/59b479a8be555c33fbe94dc45da942b40a8d4ef8763376b092b43bcfdef1fe31/68747470733a2f2f696d672e736869656c64732e696f2f707970692f762f414950657266" alt="PyPI version"&gt;&lt;/a&gt;
&lt;a href="https://opensource.org/licenses/Apache-2.0" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/886bb00dbf781bf4a65d2444847455b013522eb2f40f6e9bf18b11b901620ae5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4170616368655f322e302d626c75652e737667" alt="License"&gt;&lt;/a&gt;
&lt;a href="https://codecov.io/gh/ai-dynamo/aiperf" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/0bdf0c5a563b336ca79cf2dbcd7f0a8580d5ffa2b1cb5b74268dfd4174518541/68747470733a2f2f636f6465636f762e696f2f67682f61692d64796e616d6f2f6169706572662f67726170682f62616467652e737667" alt="Codecov"&gt;&lt;/a&gt;
&lt;a href="https://discord.gg/D92uqZRjCZ" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/c3efb72d179de8627072e7c5b99214c6bdb675fc194c5749e62ed9d276e96f7c/68747470733a2f2f646362616467652e6c696d65732e70696e6b2f6170692f7365727665722f44393275715a526a435a3f7374796c653d666c6174" alt="Discord"&gt;&lt;/a&gt;
&lt;a href="https://deepwiki.com/ai-dynamo/aiperf" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/b876cdb51d268b8a0cfce1b2864a90ee8f7a16ac8d39c439d6367495a3b63dd9/68747470733a2f2f6465657077696b692e636f6d2f62616467652e737667" alt="Ask DeepWiki"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;AIPerf is a comprehensive benchmarking tool that measures the performance of generative AI models served by your preferred inference solution. It provides detailed metrics using a command line display as well as extensive benchmark performance reports.&lt;/p&gt;
&lt;a rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/48735240/502324058-7eb40867-b1c1-4ebe-bd57-7619f2154bba.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTQ5MjAyNzcsIm5iZiI6MTc5NDkxOTk3NywicGF0aCI6Ii80ODczNTI0MC81MDIzMjQwNTgtN2ViNDA4NjctYjFjMS00ZWJlLWJkNTctNzYxOWYyMTU0YmJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTE3VDEyNTI1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5NjEwNzgyNDA4M2QyNGMyZWQwY2UwZGRhYzI2NThkNzkyZTEyYzg0OWVlZDJjZjJiZjg3MGExYjY1NTBiOWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.QCgJwjW3LDA-bE92oO1ROSmp9VW7OTzl7Alg3w1B9uc"&gt;&lt;img width="1724" height="670" alt="AIPerf UI Dashboard" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fprivate-user-images.githubusercontent.com%2F48735240%2F502324058-7eb40867-b1c1-4ebe-bd57-7619f2154bba.png%3Fjwt%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTQ5MjAyNzcsIm5iZiI6MTc5NDkxOTk3NywicGF0aCI6Ii80ODczNTI0MC81MDIzMjQwNTgtN2ViNDA4NjctYjFjMS00ZWJlLWJkNTctNzYxOWYyMTU0YmJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTE3VDEyNTI1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5NjEwNzgyNDA4M2QyNGMyZWQwY2UwZGRhYzI2NThkNzkyZTEyYzg0OWVlZDJjZjJiZjg3MGExYjY1NTBiOWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.QCgJwjW3LDA-bE92oO1ROSmp9VW7OTzl7Alg3w1B9uc" class="js-gh-image-fallback"&gt;&lt;/a&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Quick Start&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;This quick start guide leverages &lt;a href="https://ollama.com/" rel="nofollow noopener noreferrer"&gt;Ollama&lt;/a&gt; via
&lt;a href="https://www.docker.com/products/docker-desktop/" rel="nofollow noopener noreferrer"&gt;Docker Desktop&lt;/a&gt;.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Setting up a Local Server&lt;/h3&gt;
&lt;/div&gt;
&lt;p&gt;In order to set up an Ollama server, run &lt;code&gt;granite4:350m&lt;/code&gt; using the following commands:&lt;/p&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;docker run -d \
  --name ollama \
  -p 11434:11434 \
  -v ollama-data:/root/.ollama \
  ollama/ollama:latest
docker &lt;span class="pl-c1"&gt;exec&lt;/span&gt; -it ollama ollama pull granite4:350m&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Basic Usage&lt;/h3&gt;

&lt;/div&gt;
&lt;p&gt;Create a virtual environment and install AIPerf:&lt;/p&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;python3 -m venv venv
&lt;span class="pl-c1"&gt;source&lt;/span&gt; venv/bin/activate
pip install aiperf&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-alert markdown-alert-note"&gt;
&lt;p class="markdown-alert-title"&gt;Note&lt;/p&gt;
&lt;p&gt;The optional &lt;code&gt;crick&lt;/code&gt; dependency has no prebuilt wheel for some platforms
including Linux &lt;strong&gt;aarch64&lt;/strong&gt; (&lt;code&gt;arm64&lt;/code&gt;), and falls back to an sdist that needs
a C compiler at install time. &lt;code&gt;crick&lt;/code&gt; backs the non-default &lt;code&gt;tdigest&lt;/code&gt;
list-metric backend, so a plain &lt;code&gt;pip&lt;/code&gt;…&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/ai-dynamo/aiperf" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Basic Python, PyTorch and Transformer knowledge will help.&lt;/p&gt;

&lt;p&gt;All 10 are free to read or watch. Running the code examples may need a paid GPU.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>learning</category>
      <category>llm</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Signoz monitoring</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Thu, 27 Aug 2026 19:36:53 +0000</pubDate>
      <link>https://dev.to/ai-ops/signoz-monitoring-310g</link>
      <guid>https://dev.to/ai-ops/signoz-monitoring-310g</guid>
      <description>&lt;p&gt;How we monitor a multi-tenant Kubernetes SaaS across 6 regions (21B metric points/day)&lt;/p&gt;

&lt;p&gt;Open&lt;br&gt;
Full disclosure upfront: I work at SigNoz, and this is our engineering team's write-up. Posting because the architecture itself should be useful regardless of what tool you use.&lt;/p&gt;

&lt;p&gt;Context: We run a multi-tenant SigNoz Cloud across 3 regional K8S clusters (US/EU/IN). Each tenant gets an isolated namespace with their own SigNoz instance, ClickHouse, and OTel collector. Shared infra (Nginx, OTel gateway, Redpanda) is pooled per cluster.&lt;/p&gt;

&lt;p&gt;About 4 years ago, our internal monitoring (which watched all of this) kept crashing under its own telemetry volume. The write-up covers the rebuild:&lt;/p&gt;

&lt;p&gt;Daemonsets (one per node) for local metric/log/trace collection, with annotation-driven per-container scraping and not pod-level. We built this ~6 months before the OTel community started considering container-level discovery.&lt;/p&gt;

&lt;p&gt;Deployments on a dedicated node pool for synthetic probing of customer endpoints and watching the K8s API for cluster-level events (including persisting K8s events past the default ~1h retention, which has been invaluable for post-incident debugging).&lt;/p&gt;

&lt;p&gt;Envoy → OTel Gateway → Redpanda → central SigNoz instance as the buffered pipeline. V1 tried Envoy-only load balancing and it didn't work cuz distributing an overwhelming load across more instances just gives you more overwhelmed instances.&lt;/p&gt;

&lt;p&gt;Opt-in via pod annotations so we're not dealing with unnecessary telemetry.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Monitor a multi-tenant Kubernetes</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Thu, 27 Aug 2026 13:35:13 +0000</pubDate>
      <link>https://dev.to/ai-ops/signoz-3oim</link>
      <guid>https://dev.to/ai-ops/signoz-3oim</guid>
      <description>&lt;p&gt;&lt;strong&gt;Monitor a multi-tenant Kubernetes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Context: We run a multi-tenant SigNoz Cloud across 3 regional K8S clusters (US/EU/IN). Each tenant gets an isolated namespace with their own SigNoz instance, ClickHouse, and OTel collector. Shared infra (Nginx, OTel gateway, Redpanda) is pooled per cluster.&lt;/p&gt;

&lt;p&gt;About 4 years ago, our internal monitoring (which watched all of this) kept crashing under its own telemetry volume. The write-up covers the rebuild:&lt;/p&gt;

&lt;p&gt;Daemonsets (one per node) for local metric/log/trace collection, with annotation-driven per-container scraping and not pod-level. We built this ~6 months before the OTel community started considering container-level discovery.&lt;/p&gt;

&lt;p&gt;Deployments on a dedicated node pool for synthetic probing of customer endpoints and watching the K8s API for cluster-level events (including persisting K8s events past the default ~1h retention, which has been invaluable for post-incident debugging).&lt;/p&gt;

&lt;p&gt;Envoy → OTel Gateway → Redpanda → central SigNoz instance as the buffered pipeline. V1 tried Envoy-only load balancing and it didn't work cuz distributing an overwhelming load across more instances just gives you more overwhelmed instances.&lt;/p&gt;

&lt;p&gt;Opt-in via pod annotations so we're not dealing with unnecessary telemetry.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Kubernetes Tools</title>
      <dc:creator>Durgesh</dc:creator>
      <pubDate>Tue, 19 May 2026 01:42:31 +0000</pubDate>
      <link>https://dev.to/ai-ops/kubernetes-tools-4f8c</link>
      <guid>https://dev.to/ai-ops/kubernetes-tools-4f8c</guid>
      <description>&lt;p&gt;Every Kubernetes Tool Explained In One Post (And Why They Exist)&lt;br&gt;
The Kubernetes Ecosystem Has a Story. Every tool exists because Kubernetes alone wasn’t enough.&lt;/p&gt;

&lt;p&gt;You run everything with kubectl. Get pods, describe, logs, exec, delete, apply, 50 times a day across 5 namespaces. It works, but it is slow and painful, specially -n namespcae in every command.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So you use K9s or Lens. A terminal UI that shows your entire cluster in one view. It lets you switch namespaces, different clusters, and tail logs, exec inside pod, and do everything you need.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;You deploy with kubectl apply from your laptop. Someone changes a deployment directly on the cluster, and what is running no longer matches what is in Git. That is drift, and it is silent until prod breaks.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So you use ArgoCD. Git becomes the single source of truth, every change syncs to the cluster automatically, and if anyone touches a deployment manually ArgoCD overrides it back.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;Your Kafka consumer has 200,000 messages piling up, CPU is at 5 percent, and HPA sees no reason to scale. The queue keeps growing, and users are waiting.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So you use KEDA. It scales pods on queue depth, SQS message count, or Prometheus metrics, and not just CPU. The backlog clears.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;HPA adds pods during a spike, but the nodes are full, and new pods sit in Pending. HPA did its job, but the cluster had nowhere to put them.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So you use Karpenter. A new node appears in seconds when pods are stuck in Pending and disappears when the load drops. You only pay for what you use.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;Every pod can talk to every other pod by default. Your payment service can reach your database, your internal tool can reach your logging service and nothing is blocked unless you block it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So you use Network Policies. Your database only accepts traffic from the app, everything else is denied and the blast radius of a compromised pod shrinks dramatically.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;You have 20 microservices, one starts responding slowly and retries pile up across 4 other services. A cascade begins and you have no visibility into where it started because all traffic is invisible.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So you use a Service Mesh. Istio or Linkerd puts a sidecar proxy next to every pod, gives you mTLS between every service, retries, circuit breaking and traffic metrics without touching a single line of app code.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;Your secrets are Base64 encoded in Kubernetes, sitting in etcd and readable by anyone with kubectl access. You want them in Vault or AWS Secrets Manager but you do not want to rewrite your app to fetch them.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So you use the Secrets Store CSI Driver. Secrets live in Vault or AWS Secrets Manager and get mounted directly into your pod as files. The secret never lives in Kubernetes.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;A developer ships a container running as root, another ships with no resource limits and you find out after the incident. Every time.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So you use Kyverno. Policies enforced at admission before anything enters the cluster, no root containers, no images without a digest and no deployments without limits.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;Something is wrong. Pods are restarting, latency is spiking and memory is climbing but you have no numbers, no history and no way to know when it started.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So you use Prometheus and Grafana. Prometheus scrapes metrics from every pod, node and component and Grafana turns those numbers into dashboards. You see the spike, the exact time it started and which service caused it.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;Grafana shows the spike but not which request triggered it, which service it hit first or where it slowed down. Logs give you fragments and metrics give you totals. Neither gives you the full story.&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;So you use Jaeger. It follows one request across every service it touches, shows you latency per hop and the exact failure point. The needle in the haystack, found in seconds.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

</description>
      <category>devops</category>
      <category>kubernetes</category>
      <category>productivity</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
