<?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: Yaseen Khatib</title>
    <description>The latest articles on DEV Community by Yaseen Khatib (@yaseenyk04).</description>
    <link>https://dev.to/yaseenyk04</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%2F4049819%2F12dcf895-7397-40aa-8f24-b9d5d64f6736.jpg</url>
      <title>DEV Community: Yaseen Khatib</title>
      <link>https://dev.to/yaseenyk04</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yaseenyk04"/>
    <language>en</language>
    <item>
      <title>One Architect + Claude + MCP = A Full Squad</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Tue, 01 Dec 2026 23:02:08 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/one-architect-claude-mcp-a-full-squad-3pm0</link>
      <guid>https://dev.to/yaseenyk04/one-architect-claude-mcp-a-full-squad-3pm0</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  The operating model has three layers: an architect owning contracts and review, Claude Code running against the real repo, and MCP servers giving the model governed access to Postgres, the browser, and Git.&lt;/li&gt;
&lt;li&gt;  It replaces the mechanical middle of feature work — scaffolding, wiring, consistency — which is most of a product team's payroll.&lt;/li&gt;
&lt;li&gt;  Judgment is not replaced; it becomes the hire that matters: schema, trust boundaries, and adversarial review of generated work.&lt;/li&gt;
&lt;li&gt;  A 30-day installation plan: write CLAUDE.md constitutions, wire MCP read-only first, automate the worst chore, then measure cycle time publicly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is the uncomfortable math most engineering leaders haven't run yet: a large share of a product team's payroll goes to translation work — turning decided architecture into typed code, writing the CRUD nobody argues about, keeping three layers consistent with each other. That work is now automatable to a degree that changes staffing math. This post is the exact operating model I use — one architect directing Claude through MCP — and what installing it inside a company looks like.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does one architect replace a full engineering squad?
&lt;/h2&gt;

&lt;p&gt;My setup has three layers. At the top, &lt;strong&gt;me&lt;/strong&gt;: owning the data contracts, the trust boundaries, and the review. In the middle, &lt;strong&gt;Claude&lt;/strong&gt; — not as a chat window, but as Claude Code running against the real repository with a maintained &lt;code&gt;CLAUDE.md&lt;/code&gt; covering the conventions, the architecture, and the things it must never do. At the bottom, &lt;strong&gt;MCP servers&lt;/strong&gt; that give the model governed hands: Postgres for real schema and data, Playwright for driving and verifying the actual UI, filesystem and Git for the codebase itself.&lt;/p&gt;

&lt;p&gt;The result is that a single instruction — "add cursor-based pagination to the orders API and update every consumer" — executes across database, backend, frontend, and tests in one coordinated pass, with the model reading real schema over MCP instead of hallucinating it, and verifying its own work in a real browser before I review.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this replaces — and what it doesn't
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Replaced:&lt;/strong&gt; the mechanical middle of feature work — scaffolding, wiring, consistency maintenance, test boilerplate, migration chores. This was most of the payroll.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Amplified:&lt;/strong&gt; the architect. Decisions land in production the same day they are made, because there is no handoff chain to traverse.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Not replaced:&lt;/strong&gt; judgment. Someone still decides what the schema is, where the trust boundary sits, and whether the generated diff is actually correct. That someone is the hire that matters now.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installing this at a company: the 30-day version
&lt;/h2&gt;

&lt;p&gt;This is what I would do in my first month inside a team that hasn't operationalized AI yet:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Week 1 — write the constitution.&lt;/strong&gt; A &lt;code&gt;CLAUDE.md&lt;/code&gt; per repo: architecture, conventions, forbidden patterns, verify commands. This single file is the difference between an AI that helps and an AI that vandalizes.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Week 2 — wire MCP to the real systems.&lt;/strong&gt; Read-only Postgres first, then the design system, then the browser. Governed access beats copy-pasted context by an order of magnitude.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Week 3 — pick the worst recurring chore&lt;/strong&gt; (migrations, test backfill, dependency upgrades) and automate it end-to-end as a proof.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Week 4 — measure.&lt;/strong&gt; Cycle time on the automated lane versus the manual lane, in front of the team. Adoption follows evidence, not mandates.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Companies do not have an AI-model problem — every vendor sells the same models. They have an &lt;em&gt;operating model&lt;/em&gt; problem. The winners are the ones with an architect who has already run this system in production, on their own products, with their own money on the line.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I have. Every product on &lt;a href="https://yk.streamerosai.com/products/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;this site&lt;/a&gt; was built under exactly this model.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/how-to-create-an-mcp-server-portfolio-lessons/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;8 min readHow to Create an MCP Server: Lessons From My PortfolioHow to create an MCP server as one TypeScript endpoint on Cloudflare Workers, plus the part no tutorial covers: keeping the facts it serves true.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/my-journey-web-developer-to-ai-engineer/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readHow I Went From My First Dev Job to Building AI SystemsFive years, honestly told: an ASP.NET healthcare backend in 2021, full-stack MERN through the ChatGPT shift, nights of embeddings homework, and finally shipping five AI products solo. The journey, without the gloss.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/shipped-5-products-solo-12-months/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readI Shipped 5 Products in 12 Months, SoloFive production systems — a realtime telemetry cockpit, a workflow engine, a local-first AI finance agent, and two autonomous pipelines — designed, built, and shipped by one engineer. Here's the operating model.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · Full Stack AI Developer&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yk.streamerosai.com/about/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yk.streamerosai.com/solutions/business/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yk.streamerosai.com/hire/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yk.streamerosai.com/blog/one-architect-claude-mcp-full-squad/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;yk.streamerosai.com/blog/one-architect-claude-mcp-full-squad/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://yk.streamerosai.com/blog/one-architect-claude-mcp-full-squad/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;my portfolio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claude</category>
    </item>
    <item>
      <title>Hire My Head, Not My Hands</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:13:19 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/hire-my-head-not-my-hands-1l0l</link>
      <guid>https://dev.to/yaseenyk04/hire-my-head-not-my-hands-1l0l</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  AI made implementation abundant; scarce value is the head — seeing whole systems, pricing trade-offs, refusing failures in advance.&lt;/li&gt;
&lt;li&gt;  Every claim on this site is deployed and inspectable: five solo products, two autonomous pipelines, and a portfolio that is itself a working AI system.&lt;/li&gt;
&lt;li&gt;  The consistent pattern: find the governing constraint, keep judgment human, give AI leverage without authority, and document the thinking.&lt;/li&gt;
&lt;li&gt;  Evaluate by using the artifacts — the RAG concierge, the chaos sandbox, the product teardowns — not by scanning keywords.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most engineering résumés are inventories of hands: languages typed, frameworks used, years accumulated. But hands are exactly what AI just made abundant. What remains scarce — what was always scarce — is the head: the ability to see a whole system before it exists, price its trade-offs, and refuse the failures in advance. This post is the closing argument of my Founder's Log series, and it is addressed directly to the person deciding whether to interview me.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the evidence shows
&lt;/h2&gt;

&lt;p&gt;Everything claimed on this site is deployed and inspectable. Five products built solo — each one embodying a different architectural judgment call. A realtime cockpit that chose a long-lived Node process over serverless convenience because the user's machine was the constraint. A finance agent that made the AI structurally unable to touch the money. A workflow engine that cut payloads 94% by refusing to persist the view. Two autonomous pipelines that run my content and my networking on $0 of infrastructure. Plus this site itself: a static-exported Next.js app with a grounded RAG concierge, a live FinOps simulator, and an entity-graph SEO layer designed for the AI crawlers that now read the web.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pattern underneath the products
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;I find the governing constraint&lt;/strong&gt; — frame rate, trust, cost, consistency — and architect around it, not around the fashionable stack.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;I build systems that work while I sleep.&lt;/strong&gt; Pipelines with human-curated queues and machine-owned execution. That instinct — automate the cadence, keep the judgment — is precisely what companies need as they adopt AI.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;I treat AI as a workforce with a constitution.&lt;/strong&gt; Claude and MCP give me squad-level throughput, but every system has hard boundaries the model cannot cross. Leverage without authority.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;I ship, then I write.&lt;/strong&gt; Eighty-plus articles on this site document the thinking behind the code — because an architect who can't transfer understanding is a bus-factor of one.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;The question in 2026 is not "can this engineer build it?" — the model guarantees a version of it gets built. The question is: "will this engineer make the three or four decisions that determine whether it survives contact with production, users, and the invoice?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What roles is Yaseen Khatib looking for?
&lt;/h2&gt;

&lt;p&gt;A team where the hard problems are architectural: AI systems that need trust boundaries, infrastructure that needs its economics fixed, products that need to feel instant at scale. Lead or senior full-stack / AI engineering roles — remote, hybrid, or on-site — from Hyderabad, effective across time zones — my work is asynchronous by construction, as the pipelines prove.&lt;/p&gt;

&lt;p&gt;The fastest way to evaluate me is to use the site the way an engineer would: interrogate the &lt;a href="https://yk.streamerosai.com/#rag-concierge?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;RAG concierge&lt;/a&gt;, break the &lt;a href="https://yk.streamerosai.com/sandbox/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;chaos-engineering sandbox&lt;/a&gt;, read a &lt;a href="https://yk.streamerosai.com/products/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;product teardown&lt;/a&gt;, and check the &lt;a href="https://yk.streamerosai.com/interview/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;interview brief&lt;/a&gt; built for engineering leadership. Then &lt;a href="https://yk.streamerosai.com/#contact?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;start the conversation&lt;/a&gt; — the vision comes with references, and all of them are running in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/my-journey-web-developer-to-ai-engineer/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readHow I Went From My First Dev Job to Building AI SystemsFive years, honestly told: an ASP.NET healthcare backend in 2021, full-stack MERN through the ChatGPT shift, nights of embeddings homework, and finally shipping five AI products solo. The journey, without the gloss.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/shipped-5-products-solo-12-months/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readI Shipped 5 Products in 12 Months, SoloFive production systems — a realtime telemetry cockpit, a workflow engine, a local-first AI finance agent, and two autonomous pipelines — designed, built, and shipped by one engineer. Here's the operating model.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/vision-over-syntax-architecture-first/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readVision Over Syntax: Design Before CodeSyntax is solved; vision is not. How architecture-first thinking — data contracts, trust boundaries, and deliberate refusals — is the real engineering skill in the AI era, shown through shipped products.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · Full Stack AI Developer&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yk.streamerosai.com/about/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yk.streamerosai.com/solutions/business/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yk.streamerosai.com/hire/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yk.streamerosai.com/blog/hire-my-head-not-my-hands/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;yk.streamerosai.com/blog/hire-my-head-not-my-hands/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://yk.streamerosai.com/blog/hire-my-head-not-my-hands/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;my portfolio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>hire</category>
      <category>engineering</category>
    </item>
    <item>
      <title>Your Company Is Overpaying for AI by 80%</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Tue, 24 Nov 2026 15:11:50 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/your-company-is-overpaying-for-ai-by-80-2pj3</link>
      <guid>https://dev.to/yaseenyk04/your-company-is-overpaying-for-ai-by-80-2pj3</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Most production LLM traffic is repetitive or simple; sending it all to a frontier model is an architecture failure invoiced monthly.&lt;/li&gt;
&lt;li&gt;  The fix is a three-tier cascade: semantic cache (near-free), flash-class models (10x cheaper), frontier only for genuine reasoning.&lt;/li&gt;
&lt;li&gt;  In the simulator's modeled workload the cascade cuts the monthly deficit by 80%+ — and it runs live in the site's Infrastructure Lab.&lt;/li&gt;
&lt;li&gt;  Cost governance and resiliency are one discipline: the same router carries the retry, backoff, and fallback logic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most companies shipping AI features today are quietly running them at a loss. Not because the features are bad — because every request, from "what are your opening hours?" to a genuine reasoning task, gets sent to the most expensive frontier model in the catalog. I built a live, interactive cost simulator to make this failure mode visible — and the routing architecture that fixes it. You can run both in your browser, right now, in my &lt;a href="https://yk.streamerosai.com/sandbox/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;Infrastructure Lab&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The deficit nobody itemizes
&lt;/h2&gt;

&lt;p&gt;LLM spend hides because it scales with success. At 1,000 users the bill is a rounding error; at 100,000 it is a headcount; at a million it is the margin. And the brutal part: analysis of real production traffic consistently shows that a large majority of requests are repetitive or simple — greetings, rephrasings of questions already answered, lookups a cache should have caught. Paying frontier-model prices for those is not an AI cost. It is an architecture failure invoiced monthly.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you cut LLM costs by 80%? The cache → flash → frontier cascade
&lt;/h2&gt;

&lt;p&gt;The fix I implement is a three-tier router, and its economics are the whole story:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Tier 1 — semantic cache.&lt;/strong&gt; Embed the query, search for a semantically equivalent past answer. A hit costs a vector lookup — effectively free — and returns in milliseconds. In repetitive domains like support, this tier alone absorbs a huge share of traffic.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Tier 2 — flash-class model.&lt;/strong&gt; Small, fast, and priced an order of magnitude below frontier. Classification, extraction, simple Q&amp;amp;A, formatting — the daily bread of production AI — lives here.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Tier 3 — frontier model.&lt;/strong&gt; Reserved for what actually needs it: multi-step reasoning, generation with high stakes, ambiguous judgment calls. A minority of traffic, now the only part of it paying premium prices.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the simulator's modeled workload, cascading routing turns a heavily loss-making cost line into a sustainable one — an 80%+ reduction in the monthly deficit. Your mix will differ; the shape of the win will not.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;FinOps for AI is not procurement. It is architecture. The bill is decided at the router, not at the negotiation table.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why I built the simulator instead of writing a slide
&lt;/h2&gt;

&lt;p&gt;Because claims are cheap and dashboards persuade. The &lt;a href="https://yk.streamerosai.com/sandbox/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;FinOps Cost Simulator&lt;/a&gt; is a token-physics engine: drag the traffic mix, watch the cache-hit rate, flash share, and frontier share reprice the month in real time. Next to it sits a &lt;strong&gt;chaos toggle&lt;/strong&gt; that injects synthetic latency and 504s, because a router that saves money but can't survive a gateway timeout is still a liability — cost governance and resiliency are one discipline, not two.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do inside your company
&lt;/h2&gt;

&lt;p&gt;Week one: instrument — you cannot route traffic you haven't classified. Week two: stand up the semantic cache on the highest-volume surface and measure the hit rate. Weeks three and four: introduce the flash tier behind a router with confidence thresholds and an escalation path, so quality is protected while cost falls. The pattern is the same one running in my products; the only variable is your traffic mix.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/my-journey-web-developer-to-ai-engineer/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readHow I Went From My First Dev Job to Building AI SystemsFive years, honestly told: an ASP.NET healthcare backend in 2021, full-stack MERN through the ChatGPT shift, nights of embeddings homework, and finally shipping five AI products solo. The journey, without the gloss.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/shipped-5-products-solo-12-months/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readI Shipped 5 Products in 12 Months, SoloFive production systems — a realtime telemetry cockpit, a workflow engine, a local-first AI finance agent, and two autonomous pipelines — designed, built, and shipped by one engineer. Here's the operating model.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/vision-over-syntax-architecture-first/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readVision Over Syntax: Design Before CodeSyntax is solved; vision is not. How architecture-first thinking — data contracts, trust boundaries, and deliberate refusals — is the real engineering skill in the AI era, shown through shipped products.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · Full Stack AI Developer&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yk.streamerosai.com/about/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yk.streamerosai.com/solutions/business/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yk.streamerosai.com/hire/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yk.streamerosai.com/blog/ai-finops-playbook-stop-burning-money/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;yk.streamerosai.com/blog/ai-finops-playbook-stop-burning-money/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://yk.streamerosai.com/blog/ai-finops-playbook-stop-burning-money/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;my portfolio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>reduce</category>
    </item>
    <item>
      <title>The AI-Native Portfolio: Landing Lead Roles</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Fri, 20 Nov 2026 13:31:36 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/the-ai-native-portfolio-landing-lead-roles-29m6</link>
      <guid>https://dev.to/yaseenyk04/the-ai-native-portfolio-landing-lead-roles-29m6</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Show the system, not the tool usage: architecture diagrams and explicit tradeoffs are what signal seniority.&lt;/li&gt;
&lt;li&gt;  Make the portfolio itself an AI system — when the artifact demonstrates the competence it claims, it becomes proof-of-work.&lt;/li&gt;
&lt;li&gt;  Engineer for AI search with AEO: direct-answer takeaways and structured data so machines surface you as the expert.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A portfolio that lists "used ChatGPT" reads junior. One that demonstrates systems architecture — RAG with a grounding contract, agents with control loops, guardrails that fail closed, latency budgets defended at the edge — reads like the lead they're trying to hire. This final lesson is about building the second kind, shaped by real constraints like payload bloat, state-synchronization lag, and streaming backpressure, using everything the first nine established.&lt;/p&gt;

&lt;h2&gt;
  
  
  Show the system, not the tool usage
&lt;/h2&gt;

&lt;p&gt;Anyone can call an API. Seniority is signalled by the decisions _around_the call: why retrieval is chunked the way it is, where determinism lives, what happens when the model is wrong, how you kept time-to-first-token under 300ms. On IntegrateX, the pattern I call Trinity Architecture kept us honest: Presentation renders from state; a Reactive State layer (Zustand) owns truth and orchestration; a Data/Serialization Adapter strips non-essential React Flow UI metadata before persistence — that adapter alone cut payloads 94% and fixed sync jitter. Architecture diagrams and explicit tradeoffs are the artifacts that separate someone who used a tool from someone who can be trusted to design the system. Lead with the tradeoffs.&lt;/p&gt;

&lt;p&gt;swipe →&lt;/p&gt;

&lt;p&gt;The portfolio is itself the proof-of-work: content → typed registry → structured data → AI-search surfaces → qualified leads. The system you describe is the system you shipped.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the portfolio itself an AI system
&lt;/h2&gt;

&lt;p&gt;The most credible proof that you can build production AI systems is a portfolio that &lt;em&gt;is&lt;/em&gt; one. This site is the example: posts are typed objects in a registry, an autonomous pipeline drafts new ones, and every page emits structured data so machines can read it. The same Serialization Adapter idea turns rich in-memory objects into lean JSON-LD without leaking view-only fields. When the artifact demonstrates the competence the artifact claims, you stop asking the reader to take your word for it. This roadmap is proof-of-work, not a reading list.&lt;/p&gt;

&lt;p&gt;post.ts — the artifact is the evidence&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// a post is a typed object, not a CMS row — the system is legible&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;lesson&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;BlogPost&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ai-native-portfolio-landing-lead-roles"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;takeaways&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="cm"&gt;/* direct answers → JSON-LD abstract for AI search */&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Career"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"AI"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Architecture"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// SVG diagrams + architectural snippets, not screenshots&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Engineer for AI search, not just Google
&lt;/h2&gt;

&lt;p&gt;The audience now includes machines. Answer-engine optimisation (AEO) means structuring content so an AI search surfaces &lt;em&gt;you&lt;/em&gt; as the expert: direct-answer takeaways, &lt;code&gt;TechArticle&lt;/code&gt; and &lt;code&gt;Course&lt;/code&gt; JSON-LD, a clean entity graph that ties every post to a named author who "knowsAbout" these topics. The same grounding discipline you apply to a RAG system, you apply to your own visibility — make yourself the well-structured, citable source. In my Trinity split, the Presentation never formats DB schemas; the Reactive State orchestrates; the Serialization Adapter shapes the wire model for AEO — no layer talks past its neighbor.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The strongest portfolio doesn't describe an AI systems architect. It runs as one — and lets the machine reading it reach the same conclusion the hiring manager does.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That closes the loop: the stack, the grounding, the guardrails — all of it, demonstrated by the thing you're reading. Revisit the full &lt;a href="https://yk.streamerosai.com/roadmap/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;roadmap&lt;/a&gt;, or &lt;a href="https://yk.streamerosai.com/#contact?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;start a conversation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yk.streamerosai.com/blog/llm-observability-opentelemetry-tracing/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;← Lesson 11LLM Observability&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/ai-engineer-portfolio-examples/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;7 min readAI Engineer Portfolio Examples: What Reviewers VerifyFour kinds of AI engineer portfolio pieces that let a reviewer verify production experience in minutes: a live grounded assistant, a product with a readable trust boundary, a measured result, and the operating model. With this site as the worked example and its failures included.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/hire-my-head-not-my-hands/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readHire My Head, Not My HandsAI made hands abundant; heads stayed scarce. The closing argument of the Founder's Log series — the architectural judgment pattern across five shipped products, addressed to the person deciding whether to interview me.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/llm-observability-opentelemetry-tracing/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;7 min readWhen Logs Lie: Tracing LLM Agents with OpenTelemetryThe live RAG concierge on this site ships a span per step — tokens, cost, latency in OpenTelemetry — which is how I trace LLM agents, not guess from logs.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · Full Stack AI Developer&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yk.streamerosai.com/about/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yk.streamerosai.com/solutions/business/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yk.streamerosai.com/hire/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yk.streamerosai.com/blog/ai-native-portfolio-landing-lead-roles/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;yk.streamerosai.com/blog/ai-native-portfolio-landing-lead-roles/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://yk.streamerosai.com/blog/ai-native-portfolio-landing-lead-roles/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;my portfolio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>landing</category>
      <category>answer</category>
    </item>
    <item>
      <title>Semantic Caching That Actually Hits</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:47:34 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/semantic-caching-that-actually-hits-51a</link>
      <guid>https://dev.to/yaseenyk04/semantic-caching-that-actually-hits-51a</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  String-keyed caches miss because no two users phrase a question the same way; semantic caching matches on meaning.&lt;/li&gt;
&lt;li&gt;  Reuse the query embedding you already compute to look up previously answered questions in a small vector index.&lt;/li&gt;
&lt;li&gt;  The similarity threshold is a risk decision, not a constant — keep it conservative for grounded agents.&lt;/li&gt;
&lt;li&gt;  Tag cache entries with the corpus version and invalidate on re-index to avoid serving stale answers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Running the streamerOS support agent taught me that support traffic is gloriously repetitive. "How do I connect my OBS?", "how do I link OBS", "OBS setup help" — three phrasings of one question, and a naive RAG pipeline runs the full retrieve-and-generate gauntlet for every single one. Each is a model call I paid for and a second of latency the user waited through, to produce an answer already produced a hundred times. Semantic caching fixes this by recognising the question, not the string.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a normal cache misses
&lt;/h2&gt;

&lt;p&gt;A key-value cache keyed on the raw query string is useless here, because no two users phrase a question identically. The cache hit rate hovers near zero. What you actually want to match on is &lt;em&gt;meaning&lt;/em&gt; — and you already have the machinery to measure meaning, because your RAG pipeline embeds the query anyway. A semantic cache reuses that embedding to ask a different question: have I already answered something that means this?&lt;/p&gt;

&lt;p&gt;The cheapest model call is the one you never make. Above the threshold, the answer is already on the shelf.&lt;/p&gt;

&lt;h2&gt;
  
  
  The mechanism
&lt;/h2&gt;

&lt;p&gt;Embed the incoming query — you were going to anyway. Before doing any retrieval or generation, search a small vector index of previously answered queries. If the nearest neighbour sits above a similarity threshold, return its stored answer and stop. If not, run the full pipeline, then write the new query embedding and its answer back to the cache. The cache learns the shape of your traffic over time, and the hot questions go nearly free.&lt;/p&gt;

&lt;p&gt;semantic-cache.ts&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// check meaning, not string equality&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;qVec&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;embed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;near&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;cache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;vector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;qVec&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;topK&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;near&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;near&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;score&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.95&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;near&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;        &lt;span class="c1"&gt;// HIT — no retrieval, no LLM&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;runRagPipeline&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;qVec&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;cache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;upsert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;vector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;qVec&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;// learn it&lt;/span&gt;
&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The threshold is a product decision
&lt;/h2&gt;

&lt;p&gt;The similarity floor is the one dial that matters, and it is not an engineering constant — it is a risk choice. Set it high (0.97+) and you only ever reuse answers to near-identical questions; safe, lower hit rate. Set it lower and you catch more paraphrases but risk serving a confidently adjacent answer to a subtly different question. For a grounded support agent I keep it conservative, because a wrong cache hit undoes the entire zero-hallucination guarantee.&lt;/p&gt;

&lt;h2&gt;
  
  
  Invalidation is the catch
&lt;/h2&gt;

&lt;p&gt;A cached answer is a snapshot of the documentation at the moment it was generated. When the knowledge base changes, stale entries become a liability — they will happily serve last month's instructions. The clean fix is to tag every cache entry with the corpus version it was derived from and drop the whole cache on re-index. The cache is cheap to rebuild; serving a confidently outdated answer is not.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Semantic caching is the rare optimisation that improves cost and latency at once — you are not making the model faster, you are skipping it entirely for questions you have already answered.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This sits in front of the edge-native pipeline and respects the grounding contract — a cache hit is only valid if the original answer was grounded. It is the kind of trade-off I weigh on every system I ship: the cheapest, safest win is usually the work you can avoid doing at all, and knowing where that line sits is most of the job.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/optimizing-mongodb-aggregation/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;7 min readMongoDB Aggregation Pipelines: Stage Order Is the WinProfiling a clinical API taught me MongoDB aggregation pipeline optimization lives or dies on stage order: $match first on indexes, $lookup join performance, then explain.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/rag-chatbot-cloudflare-workers-where-it-broke/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;8 min readI Built a RAG Chatbot on Cloudflare Workers. It Broke 3 WaysA RAG chatbot on Cloudflare Workers, Workers AI and Vectorize, built in one night, then broken by a deprecated model, a free-tier cap and a stale index.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/ai-engineer-portfolio-examples/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;7 min readAI Engineer Portfolio Examples: What Reviewers VerifyFour kinds of AI engineer portfolio pieces that let a reviewer verify production experience in minutes: a live grounded assistant, a product with a readable trust boundary, a measured result, and the operating model. With this site as the worked example and its failures included.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · Full Stack AI Developer&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yk.streamerosai.com/about/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yk.streamerosai.com/solutions/business/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yk.streamerosai.com/hire/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yk.streamerosai.com/blog/semantic-caching-edge-rag/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;yk.streamerosai.com/blog/semantic-caching-edge-rag/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://yk.streamerosai.com/blog/semantic-caching-edge-rag/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;my portfolio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
      <category>semantic</category>
      <category>vector</category>
    </item>
    <item>
      <title>Real-Time Telemetry: Why Polling Lies</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Fri, 13 Nov 2026 12:34:18 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/real-time-telemetry-why-polling-lies-2jmj</link>
      <guid>https://dev.to/yaseenyk04/real-time-telemetry-why-polling-lies-2jmj</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Polling can't be both fresh and cheap; a push model has the server speak only when state actually changes.&lt;/li&gt;
&lt;li&gt;  Broadcast events over a persistent socket and map them onto React state with a thin subscription.&lt;/li&gt;
&lt;li&gt;  Coalesce high-frequency sources on the server to a renderable frame rate, and isolate live state so only affected components repaint.&lt;/li&gt;
&lt;li&gt;  Single-source-of-truth sync — every client identical in the same instant — is what eliminates a whole class of stale-data errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After shipping enough "live" dashboards — including the real-time layer of the CMZ portal — one truth stuck: a polling dashboard is lying most of the time. Between ticks, operators act on stale numbers; shrink the window and you DoS your own APIs with empty work. For telemetry — CPU, chat velocity, scene state — stop interrogating the server and let it speak. WebSockets push changes the instant they occur, giving every client the same value in the same frame.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why polling fails at scale
&lt;/h2&gt;

&lt;p&gt;Polling forces a bad trade: either ship latency or ship waste. At 5s, your UI is up to 5s wrong and your fleet fires a wall of redundant reads. At 500ms, you approach freshness while torching CPU, caches, and rate limits with "nothing changed" responses. There isn't a magic interval; the question itself is expensive. Flip the model so the server only emits when state actually mutates.&lt;/p&gt;

&lt;h2&gt;
  
  
  The push architecture
&lt;/h2&gt;

&lt;p&gt;The backend owns an event stream and broadcasts to subscribers over a persistent socket. No request fan-out, no timers — a value flips, the server emits, every dashboard updates in the same frame. In the pattern I call Trinity Architecture, the socket handler lives in the Reactive State / Orchestration layer, the Presentation layer just renders from state and dispatches intents, and a thin Data / Serialization Adapter shapes wire events into the in-memory model. No layer talks past its neighbor, which keeps both payloads and coupling under control.&lt;/p&gt;

&lt;p&gt;telemetry.ts&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// server: broadcast on change, not on request&lt;/span&gt;
&lt;span class="n"&gt;metrics&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"tick"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;io&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"telemetry"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// client: subscribe once, render on push&lt;/span&gt;
&lt;span class="nf"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"telemetry"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setMetrics&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Throttle the wire, not the truth
&lt;/h3&gt;

&lt;p&gt;A telemetry source can fire hundreds of events per second. Humans can't read that, and React can't reconcile that without jank. Shape the firehose at the edge — sample or debounce to a renderable cadence before broadcast — so the feed is truthful but frame-friendly. On &lt;a href="https://yk.streamerosai.com/#projects?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;streamerOS&lt;/a&gt; we had to respect 60fps while chat and system metrics spiked; coalescing server-side kept backpressure off the socket and the main thread, without lying about the latest value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Consuming streams in React without thrashing
&lt;/h2&gt;

&lt;p&gt;The foot-gun is wiring "telemetry" to setState and letting it reflow the whole tree each packet. Keep hot values in a small, focused store and subscribe only the components that care. I use a Trinity split: Presentation renders from selectors; the orchestrator (Zustand or an event bus) owns the source of truth and optimistic merges; the adapter translates over-the-wire shapes into minimal, denormalized state. A CPU tick should repaint one gauge, not your navbar, tables, and modals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this kills manual errors
&lt;/h2&gt;

&lt;p&gt;When every client observes the same state at the same moment, an entire class of "acted on stale data" mistakes disappears. No operator is reconciling conflicting numbers; no action races a 3s-old snapshot. The win isn't speed for its own sake — it's a single, timely source of truth that every operator shares, so decisions stop diverging.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Polling asks "has it changed?" a thousand times a minute. Push answers once, the moment it does. At scale, that's the line between "live" and "laggy."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is the live-data backbone of &lt;a href="https://yk.streamerosai.com/#projects?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;streamerOS&lt;/a&gt; and the real-time sync layer in the &lt;a href="https://yk.streamerosai.com/#projects?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;CMZ portal&lt;/a&gt; — the same playbook I reach for when correctness, smoothness, and cost need to coexist. Deciding when a system should push instead of being asked is the kind of judgment I bring to a team.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/websocket-telemetry-at-scale/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;8 min readWebSocket Telemetry at ScaleA single WebSocket server is a weekend project; streaming telemetry to thousands across instances broke for me on streamerOS — Redis pub/sub, rooms, coalescing.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/how-i-stop-re-renders-in-big-react-forms-uncontrolled-refs/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;8 min readHow I stop re-renders in big React forms: uncontrolled refsProduction tactics for large React forms: use uncontrolled inputs, refs, and event delegation to kill keystroke re-renders while keeping validation sane.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/how-i-orchestrate-react-with-a-typed-event-bus/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;9 min readHow I orchestrate React with a typed event busA production pattern I use to coordinate React components without prop drilling or store-bloat: a strictly typed event bus with React-safe hooks.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · MERN + AI Architect&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yk.streamerosai.com/about/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yk.streamerosai.com/solutions/business/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yk.streamerosai.com/hire/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yk.streamerosai.com/blog/real-time-telemetry-websockets-react/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;yk.streamerosai.com/blog/real-time-telemetry-websockets-react/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://yk.streamerosai.com/blog/real-time-telemetry-websockets-react/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;my portfolio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>websockets</category>
      <category>realtime</category>
    </item>
    <item>
      <title>My Networking Runs Itself: A LinkedIn Pipeline</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Wed, 04 Nov 2026 12:25:13 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/my-networking-runs-itself-a-linkedin-pipeline-39c8</link>
      <guid>https://dev.to/yaseenyk04/my-networking-runs-itself-a-linkedin-pipeline-39c8</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Consistency is a systems property: a cron-driven GitHub Actions pipeline publishes to LinkedIn and commits its own state ledger back to Git.&lt;/li&gt;
&lt;li&gt;  The human trust boundary is the queue — the machine automates showing up, never the judgment about what carries my name.&lt;/li&gt;
&lt;li&gt;  The pipeline kept publishing through heads-down building weeks, so recruiter conversations arrived on its schedule, not my energy level's.&lt;/li&gt;
&lt;li&gt;  The same queue → scheduled worker → auditable state pattern automates any valuable-but-skipped work inside a company, in days.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Networking is a numbers game played with hours you don't have. Writing a good LinkedIn post takes an evening; doing it consistently takes a discipline that competes with actually building things. So I treated my own visibility as an engineering problem and shipped a product for it: an autonomous pipeline that turns my real work into scheduled LinkedIn content, publishes it, and tracks its own state — entirely on free infrastructure. My network started growing while I slept.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you automate LinkedIn content for $0?
&lt;/h2&gt;

&lt;p&gt;The system is deliberately boring, which is the point. A GitHub Actions workflow wakes on a cron schedule. It reads a content queue, generates the post draft from the queued topic, publishes to LinkedIn, and then — the part most automation skips — commits its own state back to the repository in a &lt;code&gt;published.json&lt;/code&gt; ledger. The Git history is the database. There is no server to babysit, no dashboard subscription, no runtime cost. If it ever misfires, the ledger is a diff I can read and revert like any other commit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Automation with a quality gate
&lt;/h2&gt;

&lt;p&gt;The word "bot" earns its bad reputation from systems that publish without judgment. Mine has a human trust boundary in the same place all my products do: the queue. Nothing enters it that I haven't decided is worth saying — the pipeline automates the &lt;em&gt;showing up&lt;/em&gt;, not the &lt;em&gt;thinking&lt;/em&gt;. It is the same propose/confirm split that governs my finance agent: the machine handles cadence and delivery, the human owns the content decisions that carry my name.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Consistency is a systems property, not a personality trait. If showing up matters and humans are bad at it, that is not a self-improvement problem — that is a pipeline waiting to be built.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What it changed
&lt;/h2&gt;

&lt;p&gt;The pipeline did what consistency always does: compounded. Posts went out on schedule through weeks when I was heads-down shipping Sable and streamerOS — precisely the weeks I would previously have gone silent. Profile visits, connection requests, and recruiter conversations arrived on the pipeline's schedule instead of my energy level's. The product's full architecture breakdown lives &lt;a href="https://yk.streamerosai.com/products/linkedin-pipeline/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;on its product page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The transferable lesson for companies
&lt;/h2&gt;

&lt;p&gt;Every company has a version of this problem: work that is valuable, repetitive, and chronically skipped because it competes with "real" work — release notes, changelogs, status updates, onboarding emails, documentation refreshes. The pattern that fixed my networking fixes those too: a queue a human curates, a scheduled worker that executes, state committed somewhere auditable, and zero new infrastructure to own. I've now built that pattern three times (content, outreach, and blog publishing) — it takes days, not quarters, and it never calls in sick.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/zero-dollar-content-engine/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readThe $0 Content Engine That Runs ItselfA cron-scheduled pipeline drafts articles with Gemini, writes MDX, commits to Git, and redeploys the static site — no CMS, no server, no database, no bill. The architecture of refusing infrastructure.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/shipped-5-products-solo-12-months/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;6 min readI Shipped 5 Products in 12 Months, SoloFive production systems — a realtime telemetry cockpit, a workflow engine, a local-first AI finance agent, and two autonomous pipelines — designed, built, and shipped by one engineer. Here's the operating model.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/sable-ai-agent-never-touches-money/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;7 min readAn AI Money Agent That Can't Touch the MoneySable is a local-first AI financial agent: all data in on-device SQLite, no cloud backend, and a Review &amp;amp; Confirm boundary where the model proposes but only a human commits. The trust architecture, explained.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · MERN + AI Architect&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yk.streamerosai.com/about/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yk.streamerosai.com/solutions/business/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yk.streamerosai.com/hire/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yk.streamerosai.com/blog/linkedin-pipeline-job-search-runs-itself/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;yk.streamerosai.com/blog/linkedin-pipeline-job-search-runs-itself/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://yk.streamerosai.com/blog/linkedin-pipeline-job-search-runs-itself/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;my portfolio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>automation</category>
      <category>linkedin</category>
    </item>
    <item>
      <title>WebSocket Telemetry at Scale</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Wed, 04 Nov 2026 12:25:12 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/websocket-telemetry-at-scale-3f8o</link>
      <guid>https://dev.to/yaseenyk04/websocket-telemetry-at-scale-3f8o</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  In-memory broadcast only reaches the local process — multi-instance real-time needs a shared backplane (Redis pub/sub).&lt;/li&gt;
&lt;li&gt;  Scope subscriptions into rooms so each client receives only the streams it watches, collapsing bandwidth and CPU.&lt;/li&gt;
&lt;li&gt;  Coalesce high-frequency sources on the server to a renderable frame rate before broadcasting.&lt;/li&gt;
&lt;li&gt;  Handle backpressure at the source, not after it has already flooded the client.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A single WebSocket server streaming telemetry to a few clients is a weekend project. Feeding thousands across multiple instances is systems work. I learned that on streamerOS: the “one process holds every socket” sketch sailed on one pod and face-planted the moment we scaled out. Each instance owns its own connection table, so A cannot fan out to subscribers that landed on B; broadcasts die at the process boundary and your graphs freeze.&lt;/p&gt;

&lt;h2&gt;
  
  
  The horizontal-scaling problem
&lt;/h2&gt;

&lt;p&gt;Once you run more than one server process behind a load balancer, connections fan out across instances. An event that originates on one instance has to reach subscribers on all of them. In-memory broadcast only reaches the local process; you need a shared backplane so every instance hears every event. In the pattern I call Trinity Architecture, this cross-instance fanout lives in the orchestration tier — the UI stays dumb, render-only, and the adapter keeps payloads lean. I use a Serialization Adapter there too; on IntegrateX it stripped non-essential React Flow UI metadata before persistence and cut graph payloads 94%, and the same habit keeps telemetry frames tight.&lt;/p&gt;

&lt;p&gt;scale.ts&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Redis pub/sub backplane → broadcast across every instance&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;createAdapter&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@socket.io/redis-adapter&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;io&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;adapter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;createAdapter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;pubClient&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;subClient&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;

&lt;span class="c1"&gt;// emit anywhere; every instance's subscribers receive it&lt;/span&gt;
&lt;span class="nx"&gt;metrics&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;tick&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;io&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;telemetry&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;emit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;metric&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Rooms, not broadcasts
&lt;/h2&gt;

&lt;p&gt;Do not push every metric to every client. Scope subscriptions into rooms — per dashboard, per device, per tenant — so a client receives only the streams it is watching. This collapses bandwidth and CPU from O(clients × events) toward O(interested clients), which is the difference between a system that scales and one that melts at a few thousand connections. On streamerOS, moving from a global channel to roomed feeds stopped NIC spikes, trimmed CPU interrupts, and cut render thrash when operators flipped between views; the UI joined/left rooms via the orchestrator in my Trinity split, never from components.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coalesce at the source
&lt;/h2&gt;

&lt;p&gt;High-frequency sources emit faster than any client can render or any socket should carry. Sample or debounce on the server to a sane frame rate before broadcasting, so you push the latest truth at a rate the wire and the React reconciler can actually absorb. Budget is ~16ms at 60fps; a 200 Hz stream will starve the UI thread. Track last-value-wins per key and pre-aggregate counters server-side. Backpressure handled at the source beats backpressure discovered at the client.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Scaling real-time is not about a faster socket. It is about making sure each event travels exactly as far as it needs to — and no further.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For the single-server fundamentals and the React consumption side, see &lt;a href="https://yk.streamerosai.com/blog/real-time-telemetry-websockets-react/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;Real-Time Telemetry&lt;/a&gt;; the live systems are &lt;a href="https://yk.streamerosai.com/#projects?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;streamerOS and the CMZ portal&lt;/a&gt;. The instinct I bring to a team is deciding how far each event should travel before you scale out, not after the graphs freeze.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/real-time-telemetry-websockets-react/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;8 min readReal-Time Telemetry: Why Polling LiesPolling dashboards lie between ticks — I learned that the hard way. Now I push telemetry over WebSockets for sub-second parity across every React client.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/optimizing-mongodb-aggregation/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;7 min readMongoDB Aggregation Pipelines: Stage Order Is the WinProfiling a clinical API taught me MongoDB aggregation pipeline optimization lives or dies on stage order: $match first on indexes, $lookup join performance, then explain.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yk.streamerosai.com/blog/unifying-twitch-and-youtube-live-chat-ordered-de-duplicated/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;8 min readUnifying Twitch and YouTube live chatBuild a single, ordered, de-duplicated event stream from Twitch IRC and YouTube Live Chat with Hybrid Logical Clocks, watermarks, and idempotent delivery.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · MERN + AI Architect&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yk.streamerosai.com/about/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yk.streamerosai.com/solutions/business/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yk.streamerosai.com/hire/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yk.streamerosai.com/blog/websocket-telemetry-at-scale/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;yk.streamerosai.com/blog/websocket-telemetry-at-scale/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://yk.streamerosai.com/blog/websocket-telemetry-at-scale/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=crosspost" rel="noopener noreferrer"&gt;my portfolio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>websockets</category>
      <category>realtime</category>
      <category>redis</category>
    </item>
    <item>
      <title>MERN Stack Developer vs Full Stack Developer: What Changes</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Fri, 30 Oct 2026 10:59:52 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/mern-stack-developer-vs-full-stack-developer-what-changes-1g8m</link>
      <guid>https://dev.to/yaseenyk04/mern-stack-developer-vs-full-stack-developer-what-changes-1g8m</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  A MERN stack developer is a full-stack developer who works in MongoDB, Express, React and Node; full stack is the range, MERN is one choice of tools.&lt;/li&gt;
&lt;li&gt;  MERN fixes one language end to end, a document database by default, and a single npm ecosystem, which is why it suits small teams and real-time products.&lt;/li&gt;
&lt;li&gt;  The titles diverge on relational database experience, real-time work, and server rendering; test for those rather than the acronym.&lt;/li&gt;
&lt;li&gt;  Hire a MERN developer when the product is already MERN; hire a broader full-stack developer when the stack is still a choice.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A MERN stack developer is a full-stack developer who has chosen one specific set of tools: MongoDB for the database, Express for the server, React for the interface, and Node.js for the runtime. Every MERN developer is a full-stack developer. Not every full-stack developer works in MERN. That is the whole relationship, and the rest of this post is about what the choice means when you are hiring one or deciding to become one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "full stack" actually covers
&lt;/h2&gt;

&lt;p&gt;Full stack means one person can take a feature from the database schema to the pixels on screen and the deployment in between. The stack itself is open. A full-stack developer might work in Django and Vue, Rails and Hotwire, Laravel and Blade, Spring and Angular, or Next.js and Postgres. What makes them full stack is the range, not the tools.&lt;/p&gt;

&lt;p&gt;In practice the title hides a spread. Some full-stack developers are backend engineers who can write enough React to ship a form. Others are front-end specialists who can stand up an API. The useful question in an interview is never "are you full stack" but "which half would you reach for first, and how far does the other half go."&lt;/p&gt;

&lt;h2&gt;
  
  
  What MERN narrows down
&lt;/h2&gt;

&lt;p&gt;MERN fixes every layer to JavaScript or TypeScript. That has three consequences that matter more than the acronym.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;One language end to end.&lt;/strong&gt; The same types, the same validation logic and often the same utility code run in the browser and on the server. On a small team that removes a whole category of mismatch bugs between what the API sends and what the UI expects.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;A document database by default.&lt;/strong&gt; MongoDB stores JSON shaped documents, which maps cleanly onto the objects a React app already handles. It also means schema discipline is on the developer, not the database. Aggregation pipelines and index design become the performance work, as I covered in &lt;a href="https://yaseenkhatib.streamerosai.com/blog/optimizing-mongodb-aggregation/" rel="noopener noreferrer"&gt;optimising MongoDB aggregation&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;A single ecosystem.&lt;/strong&gt; npm, the Node event loop, Express middleware and React's component model are one world. A MERN developer goes deep in it rather than wide across several.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where the two titles diverge in real work
&lt;/h2&gt;

&lt;p&gt;The difference shows up in three places.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Databases.&lt;/strong&gt; A general full-stack developer usually has relational experience: joins, transactions, migrations, constraints enforced by the database. A MERN developer who has only worked with MongoDB may not. The reverse is also true: relational-first developers often model documents badly, embedding what should be referenced and referencing what should be embedded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-time and streaming.&lt;/strong&gt; Node's event loop makes WebSockets and streaming responses natural, which is why a lot of real-time product work ends up in MERN shops. I wrote up the pattern in &lt;a href="https://yaseenkhatib.streamerosai.com/blog/websocket-telemetry-at-scale/" rel="noopener noreferrer"&gt;WebSocket telemetry at scale&lt;/a&gt;. A full-stack developer from a request-response framework has to learn that model rather than inherit it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rendering.&lt;/strong&gt; Plain MERN is a client-rendered React app talking to an Express API. Modern full-stack JavaScript work has largely moved to frameworks like Next.js that render on the server or at build time, which changes how data loading, caching and SEO work. Many MERN developers have made that move; the acronym has not caught up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one to hire
&lt;/h2&gt;

&lt;p&gt;Hire for the problem, then check the stack.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  If your product is already in MongoDB, Express, React and Node, hire a MERN developer and test depth: schema design, aggregation, authentication, and how they structure a React app once it has more than twenty components.&lt;/li&gt;
&lt;li&gt;  If you are choosing a stack, hire a full-stack developer who has shipped in more than one and ask them to argue against MERN. The honest answer sometimes is Postgres.&lt;/li&gt;
&lt;li&gt;  If the work involves AI features, the stack matters less than whether the person has put a model into production behind a real interface: retrieval, evaluation, cost control, and the boundary between what the model proposes and what the system commits. My own path went MERN first and then into that, which I described in &lt;a href="https://yaseenkhatib.streamerosai.com/blog/my-journey-web-developer-to-ai-engineer/" rel="noopener noreferrer"&gt;from web developer to AI engineer&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Which one to become
&lt;/h2&gt;

&lt;p&gt;Start with MERN or any single coherent stack, because depth in one place teaches you what the layers are for. Then deliberately break the acronym: learn a relational database, learn a server-rendering framework, and ship something with a model in it. At that point the title on your CV is full-stack developer, and MERN is the first line under it rather than the whole story.&lt;/p&gt;

&lt;p&gt;If you are hiring for either, the &lt;a href="https://yaseenkhatib.streamerosai.com/hire/" rel="noopener noreferrer"&gt;hire page&lt;/a&gt; describes what I build and how I work.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/ai-engineer-portfolio-examples/" rel="noopener noreferrer"&gt;7 min readAI Engineer Portfolio Examples: What Reviewers VerifyFour kinds of AI engineer portfolio pieces that let a reviewer verify production experience in minutes: a live grounded assistant, a product with a readable trust boundary, a measured result, and the operating model. With this site as the worked example and its failures included.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/my-journey-web-developer-to-ai-engineer/" rel="noopener noreferrer"&gt;6 min readHow I Went From My First Dev Job to Building AI SystemsFive years, honestly told: an ASP.NET healthcare backend in 2021, full-stack MERN through the ChatGPT shift, nights of embeddings homework, and finally shipping five AI products solo. The journey, without the gloss.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/hire-my-head-not-my-hands/" rel="noopener noreferrer"&gt;6 min readHire My Head, Not My HandsAI made hands abundant; heads stayed scarce. The closing argument of the Founder's Log series — the architectural judgment pattern across five shipped products, addressed to the person deciding whether to interview me.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · Full-Stack AI Engineer&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yaseenkhatib.streamerosai.com/about/" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yaseenkhatib.streamerosai.com/solutions/business/" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yaseenkhatib.streamerosai.com/hire/" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yaseenkhatib.streamerosai.com/blog/mern-stack-developer-vs-full-stack-developer/" rel="noopener noreferrer"&gt;yaseenkhatib.streamerosai.com/blog/mern-stack-developer-vs-full-stack-developer/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mern</category>
      <category>full</category>
      <category>what</category>
    </item>
    <item>
      <title>AI Engineer Portfolio Examples: What Reviewers Verify</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Fri, 30 Oct 2026 10:59:48 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/ai-engineer-portfolio-examples-what-reviewers-verify-4b80</link>
      <guid>https://dev.to/yaseenyk04/ai-engineer-portfolio-examples-what-reviewers-verify-4b80</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Reviewers check whether anything runs, whether you made the hard decisions, whether you can explain a trade-off, and whether anything is measured.&lt;/li&gt;
&lt;li&gt;  The strongest piece is a live retrieval assistant on the portfolio itself, with a visible refusal path and its index exposed as an MCP server.&lt;/li&gt;
&lt;li&gt;  A product with a readable trust boundary, such as a propose-and-confirm agent, gives reviewers something to disagree with, which is the point.&lt;/li&gt;
&lt;li&gt;  Include one measured before-and-after result and one plainly told failure; both raise credibility more than another success.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An AI engineer portfolio has one job: let a stranger verify, in a few minutes and without talking to you, that you have put a model into production and understood what happened. Most portfolios fail that test not because the work is weak but because the site shows a list of technologies instead of a system someone can inspect. This post is the checklist I used to build mine, with this site as the worked example, including the parts I got wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a hiring manager is actually checking
&lt;/h2&gt;

&lt;p&gt;Nobody reading an AI engineer portfolio is impressed by the words RAG, agents or fine-tuning any more. They are looking for four things, in roughly this order.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Does anything here run?&lt;/strong&gt; A live system beats a screenshot, and a screenshot beats a bullet point.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Did you make the hard decisions, or follow a tutorial?&lt;/strong&gt; Retrieval thresholds, refusal behaviour, cost controls, the boundary between what the model proposes and what the system commits.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Can you explain a trade-off in writing?&lt;/strong&gt; One honest paragraph about a failure is worth more than ten about a success.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Is any of it measured?&lt;/strong&gt; Latency, cost per request, eval scores, a payload reduction with a before and after.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Example 1: a live, grounded assistant on the site itself
&lt;/h2&gt;

&lt;p&gt;The strongest example an AI engineer can put on a portfolio is a retrieval system that answers questions about the portfolio. It is self-demonstrating: the visitor asks, the system cites its source, and when asked something the site does not cover, it refuses instead of guessing.&lt;/p&gt;

&lt;p&gt;On this site that is the concierge on the home page. It runs on a Cloudflare Worker, embeds the question with Workers AI, retrieves from a Vectorize index built from the site's own content, and declines below a confidence threshold. The same index is exposed as an MCP server, so a reviewer can connect it from inside Claude and interrogate it there. The design decisions are written up in &lt;a href="https://yaseenkhatib.streamerosai.com/blog/semantic-caching-edge-rag/" rel="noopener noreferrer"&gt;semantic caching for edge RAG&lt;/a&gt; and the pipeline is re-indexed automatically after every deploy.&lt;/p&gt;

&lt;p&gt;What makes it a portfolio piece rather than a widget is that the refusal path is visible. Ask it something it cannot know and watch it say so. That one behaviour answers the "did you follow a tutorial" question.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example 2: a product with a trust boundary you can read
&lt;/h2&gt;

&lt;p&gt;The second example is a shipped product where the AI can do damage if it is wrong, and the architecture stops it. For me that is &lt;a href="https://yaseenkhatib.streamerosai.com/products/sable/" rel="noopener noreferrer"&gt;Sable&lt;/a&gt;, a local-first finance agent. Every record lives in on-device SQLite with no cloud backend, and every action the model wants to take is rendered as a review card a person confirms. A hallucination's blast radius is one dismissed card.&lt;/p&gt;

&lt;p&gt;The portfolio piece is not the app. It is the &lt;a href="https://yaseenkhatib.streamerosai.com/blog/sable-ai-agent-never-touches-money/" rel="noopener noreferrer"&gt;write-up of why the model never touches money&lt;/a&gt;. A reviewer can disagree with the design, and that is the point: it gives them something to disagree with.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example 3: a measured engineering result
&lt;/h2&gt;

&lt;p&gt;Every AI engineer portfolio should contain at least one number that was measured rather than estimated, with the before and the after. Mine is a &lt;a href="https://yaseenkhatib.streamerosai.com/blog/94-percent-payload-reduction-react-flow/" rel="noopener noreferrer"&gt;94% payload reduction&lt;/a&gt; on a workflow engine's graph serialisation. It is not an AI result. It is there because it shows the habit of measuring, which is the same habit that makes LLM cost control and evals possible. The FinOps side of that habit is in the &lt;a href="https://yaseenkhatib.streamerosai.com/blog/ai-finops-playbook-stop-burning-money/" rel="noopener noreferrer"&gt;AI FinOps playbook&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example 4: the operating model, written down
&lt;/h2&gt;

&lt;p&gt;Senior roles are increasingly about how you work with AI tools, not only how you build AI products. A portfolio can show that directly: a description of the workflow, what is automated, what is reviewed, and what the constitution files say. Mine is in &lt;a href="https://yaseenkhatib.streamerosai.com/blog/one-architect-claude-mcp-full-squad/" rel="noopener noreferrer"&gt;one architect, Claude Code and MCP&lt;/a&gt;, with a 30-day plan a team could copy. Pipelines on this site, such as the weekly AI-drafted post that opens a pull request for review rather than publishing, are that model running in public.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I got wrong, which is also an example
&lt;/h2&gt;

&lt;p&gt;For four months this site was invisible to Google because an entrance animation shipped its hidden state into the static HTML, so the crawler's snapshot was blank. A separate mistake before that was an auto-publishing pipeline that flooded the site with commodity explainer posts, which got the whole site treated as low value. Both are documented in the repository and both are on this page on purpose. An AI engineer portfolio that admits what broke is more credible than one that does not, because every reviewer knows something broke.&lt;/p&gt;

&lt;h2&gt;
  
  
  A checklist you can apply to your own
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  One live system a visitor can poke, with a visible refusal or guardrail.&lt;/li&gt;
&lt;li&gt;  One product where the AI could do harm and the architecture prevents it, with the reasoning written down.&lt;/li&gt;
&lt;li&gt;  One measured result with a before and after, even if it is not about AI.&lt;/li&gt;
&lt;li&gt;  One description of how you work with AI tools, specific enough to copy.&lt;/li&gt;
&lt;li&gt;  One failure, told plainly.&lt;/li&gt;
&lt;li&gt;  Source code or a repository link for at least one of the above.&lt;/li&gt;
&lt;li&gt;  No fabricated metrics, testimonials or dates. Reviewers check.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Templates and themes do not matter much. The list above does. If you would rather see the whole thing applied, the &lt;a href="https://yaseenkhatib.streamerosai.com/projects/" rel="noopener noreferrer"&gt;projects page&lt;/a&gt; is the index and the &lt;a href="https://yaseenkhatib.streamerosai.com/hire/" rel="noopener noreferrer"&gt;hire page&lt;/a&gt; is where it leads.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/mern-stack-developer-vs-full-stack-developer/" rel="noopener noreferrer"&gt;6 min readMERN Stack Developer vs Full Stack Developer: What ChangesEvery MERN developer is a full-stack developer, but not the other way round. What MongoDB, Express, React and Node fix in place, where the two titles diverge in real work, and which one to hire or become.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/ai-native-portfolio-landing-lead-roles/" rel="noopener noreferrer"&gt;6 min readThe AI-Native Portfolio: Landing Lead RolesA portfolio that lists 'used ChatGPT' reads junior. One that demonstrates systems architecture — RAG, agents, guardrails, latency budgets — reads like the lead they're trying to hire. Here's how to build the second one.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/whatsapp-chatbot-saas-vs-owning-it/" rel="noopener noreferrer"&gt;8 min readWhatsApp Chatbot for Business: Monthly SaaS vs Owning ItWhat a WhatsApp chatbot really costs in India: Meta's per-message fees, WATI and Interakt plans over three years, and when an owned AI bot is cheaper.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · Full-Stack AI Engineer&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yaseenkhatib.streamerosai.com/about/" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yaseenkhatib.streamerosai.com/solutions/business/" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yaseenkhatib.streamerosai.com/hire/" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yaseenkhatib.streamerosai.com/blog/ai-engineer-portfolio-examples/" rel="noopener noreferrer"&gt;yaseenkhatib.streamerosai.com/blog/ai-engineer-portfolio-examples/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machine</category>
    </item>
    <item>
      <title>WhatsApp Chatbot for Business: Monthly SaaS vs Owning It</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Sat, 24 Oct 2026 09:01:42 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/whatsapp-chatbot-for-business-monthly-saas-vs-owning-it-1mj1</link>
      <guid>https://dev.to/yaseenyk04/whatsapp-chatbot-for-business-monthly-saas-vs-owning-it-1mj1</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Every WhatsApp chatbot pays Meta per delivered message; service replies to customers who wrote first include 1,000 free a month per number from 1 October 2026.&lt;/li&gt;
&lt;li&gt;  Subscription platforms add a plan fee and often a per-message markup; an AI add-on can roughly double the plan fee.&lt;/li&gt;
&lt;li&gt;  Over three years, plan fees for an AI-answering setup run to around ₹1.9–2.1 lakh before GST on the plans compared here; a one-time build costs about one year of that.&lt;/li&gt;
&lt;li&gt;  Rent for broadcasts, team inbox and menu bots; own the bot when it must answer from your documents, refuse rather than guess, or act on your systems.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Short answer: rent a WhatsApp chatbot platform if what you need is broadcasts, a shared team inbox and menu-style flows. Own the bot if it has to answer questions from your own documents or act on your own systems.&lt;/strong&gt; Either way you pay Meta for messages. The decision is about what you pay on top of that, every month, for as long as the bot runs.&lt;/p&gt;

&lt;p&gt;Every page that ranks for “WhatsApp chatbot” in India is written by a company selling a subscription to one, so none of them works through the comparison below. I build these, so I have a bias too. I have tried to make it visible by saying where renting is the better call. All prices were checked on the vendors' own pricing pages on 23 October 2026, and they change, so check them again before you sign anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cost nobody avoids: Meta's per-message fees
&lt;/h2&gt;

&lt;p&gt;A real WhatsApp chatbot runs on the WhatsApp Business Platform (the API), not the free WhatsApp Business app. Since 1 July 2025 Meta charges per delivered message, priced by category and by the recipient's country. Indian businesses can now be billed in rupees, and Meta requires accounts billed in India to move to INR by 31 December 2026.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Marketing&lt;/strong&gt; templates (offers, broadcasts) are the expensive category, a little under a rupee each on Meta's INR rate card.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Utility&lt;/strong&gt; (order updates) and &lt;strong&gt;authentication&lt;/strong&gt; (OTPs) cost a fraction of that.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Service&lt;/strong&gt; messages, your replies when a customer writes to you first, are what a support chatbot mostly sends. From 1 October 2026 each business number gets 1,000 free service messages a month, and the 1,001st is charged.&lt;/li&gt;
&lt;li&gt;  Conversations that start from a Click-to-WhatsApp ad open a free window of up to seven days.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A bot that mainly answers incoming questions sits largely inside the cheap or free categories. A bot that mainly sends promotions does not, and no platform choice changes that.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the subscription platforms add
&lt;/h2&gt;

&lt;p&gt;Platforms such as WATI and Interakt are Business Solution Providers: they connect you to the API and give you a dashboard. You pay a plan fee, and on top of Meta's rate, often a per-message markup.&lt;/p&gt;

&lt;p&gt;Platform and plan&lt;/p&gt;

&lt;p&gt;Plan fee (INR, + GST)&lt;/p&gt;

&lt;p&gt;AI that answers questions&lt;/p&gt;

&lt;p&gt;WATI Growth&lt;/p&gt;

&lt;p&gt;₹2,699 / month, billed quarterly&lt;/p&gt;

&lt;p&gt;1 AI agent, 2,000 AI credits&lt;/p&gt;

&lt;p&gt;WATI Pro&lt;/p&gt;

&lt;p&gt;₹5,799 / month, billed quarterly&lt;/p&gt;

&lt;p&gt;2 AI agents, 5,000 AI credits&lt;/p&gt;

&lt;p&gt;WATI Business&lt;/p&gt;

&lt;p&gt;₹16,799 / month, billed quarterly&lt;/p&gt;

&lt;p&gt;Unlimited agents, 20,000 AI credits&lt;/p&gt;

&lt;p&gt;Interakt Growth&lt;/p&gt;

&lt;p&gt;₹2,799 / month&lt;/p&gt;

&lt;p&gt;Add-on: WhatsApp AI Agents, ₹2,499 / month for 100 AI messages, then ₹0.50 each&lt;/p&gt;

&lt;p&gt;Interakt Advanced&lt;/p&gt;

&lt;p&gt;₹3,799 / month&lt;/p&gt;

&lt;p&gt;Same add-on&lt;/p&gt;

&lt;p&gt;The markup is easiest to see on Interakt, which publishes its per-message rates: a service message is ₹0.128 on Growth, against ₹0.115, the utility and authentication rate on Meta's INR rate card for India. Only Interakt's Enterprise plan says it has no markup. WATI's page says per-message charges vary by category and links its rate card separately.&lt;/p&gt;

&lt;p&gt;None of this is a scandal. A team inbox, a broadcast scheduler, template management and a Shopify connector are real software, and building them yourself would cost far more than the subscription.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three years of each, worked through
&lt;/h2&gt;

&lt;p&gt;An illustration, not a client: a business that wants an AI assistant answering customer questions on WhatsApp, with a couple of staff handing over to a person when the bot cannot help. Plan fees only, before GST and before Meta's charges, which are the same in every column.&lt;/p&gt;

&lt;p&gt;Interakt Growth + AI Agents&lt;/p&gt;

&lt;p&gt;WATI Pro&lt;/p&gt;

&lt;p&gt;Owned build&lt;/p&gt;

&lt;p&gt;Per month&lt;/p&gt;

&lt;p&gt;₹5,298, plus ₹0.50 per AI message after 100&lt;/p&gt;

&lt;p&gt;₹5,799&lt;/p&gt;

&lt;p&gt;Hosting and model usage only&lt;/p&gt;

&lt;p&gt;36 months of plan fees&lt;/p&gt;

&lt;p&gt;₹1,90,728&lt;/p&gt;

&lt;p&gt;₹2,08,764&lt;/p&gt;

&lt;p&gt;none&lt;/p&gt;

&lt;p&gt;Up front&lt;/p&gt;

&lt;p&gt;none&lt;/p&gt;

&lt;p&gt;none&lt;/p&gt;

&lt;p&gt;the build, from $800 at my published price&lt;/p&gt;

&lt;p&gt;At current exchange rates the build costs about what one year of either plan does, so the owned bot breaks even around the end of the first year and is ahead from then on. The Interakt column is also the optimistic one: 100 AI messages a month is a few a day, so any real volume adds the per-message AI charge on top. An owned bot's model usage depends on your volume and the model you choose; for short answers grounded in a few documents it is small, and it can be estimated before you commit.&lt;/p&gt;

&lt;h2&gt;
  
  
  When renting is the right answer
&lt;/h2&gt;

&lt;p&gt;If the job is broadcasts to a customer list, abandoned-cart reminders from Shopify, catalogues and a shared inbox for five people, rent a platform. That is exactly what they are built for, it works on day one, and building it yourself would be paying to recreate a product that already exists. The same goes for a menu bot (press 1 for timings, 2 for location) with no AI in it.&lt;/p&gt;

&lt;p&gt;Renting also wins if nobody in the business will own a piece of software. An owned bot needs someone, in-house or hired, to keep the WhatsApp app credentials valid, update the documents it answers from, and fix it when Meta changes something.&lt;/p&gt;

&lt;h2&gt;
  
  
  When owning it is the right answer
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;It must answer from your documents.&lt;/strong&gt; Policies, product manuals, fee structures, a price list that changes monthly. This is retrieval-augmented generation (RAG): the bot looks up the relevant passages and answers only from them.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;It must refuse rather than guess.&lt;/strong&gt; When nothing relevant is found above a similarity threshold, a well-built bot says it does not know and hands over to a person. A generic AI agent tuned for engagement will often improvise.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;It must touch your systems.&lt;/strong&gt; Look up an order in your own database, book a slot in your own calendar, write a lead into your own CRM.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;You want the data.&lt;/strong&gt; The conversations and the customer records live in a database you own, not in a vendor's dashboard you export from.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What an owned WhatsApp chatbot actually is
&lt;/h2&gt;

&lt;p&gt;Less than people expect. Meta's Cloud API sends every incoming message to a webhook you host. Your code verifies it, retrieves the relevant passages, asks a model for an answer grounded in them, and posts the reply back to the Graph API. A minimal handler:&lt;/p&gt;

&lt;p&gt;webhook.ts&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1. Meta verifies the webhook once with a GET request.&lt;/span&gt;
&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;method&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;GET&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;searchParams&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;hub.verify_token&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;VERIFY_TOKEN&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ok&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;searchParams&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;hub.challenge&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;forbidden&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;ok&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;403&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// 2. Every customer message arrives as a POST.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;?.[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]?.&lt;/span&gt;&lt;span class="nx"&gt;changes&lt;/span&gt;&lt;span class="p"&gt;?.[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]?.&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nx"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;?.[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;text&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;passages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;retrieve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;        &lt;span class="c1"&gt;// vector search&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;answer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;passages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;
    &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;answerFrom&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;passages&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;          &lt;span class="c1"&gt;// grounded reply&lt;/span&gt;
    &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;I don't have that in our documents. A person will reply shortly.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;GRAPH_URL&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;PHONE_NUMBER_ID&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/messages&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;POST&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Bearer &lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;WA_TOKEN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Content-Type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;application/json&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="na"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;messaging_product&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;whatsapp&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                           &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;text&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;answer&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}),&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The reply goes out inside the 24-hour window the customer opened, so it is a service message. The real work sits in &lt;code&gt;retrieve&lt;/code&gt; and &lt;code&gt;answerFrom&lt;/code&gt;: splitting documents sensibly, choosing the threshold, and checking that answers cite what they used. That is also where most cheap chatbots cut corners.&lt;/p&gt;

&lt;p&gt;Two things this does not remove. Outbound messages outside that window still need templates approved by Meta, owned bot or not. And your number still needs a verified Meta Business account, which takes paperwork rather than code.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick way to decide
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Write down the ten questions customers ask most. If a menu answers them, rent a platform or use the free app's quick replies.&lt;/li&gt;
&lt;li&gt; If the answers live in documents that change, or need a lookup in your systems, you need RAG and probably an owned bot.&lt;/li&gt;
&lt;li&gt; Multiply the platform's plan plus its AI add-on by 36 and set that next to a one-time build plus its running cost.&lt;/li&gt;
&lt;li&gt; Decide who maintains it. If the answer is nobody, rent.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the answer points to owning it, the &lt;a href="https://yaseenkhatib.streamerosai.com/solutions/ai-chatbot/" rel="noopener noreferrer"&gt;AI chatbot page&lt;/a&gt; has my fixed prices and a live assistant on this site built the same way, which you can try before deciding anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/mastering-claude-architecture-context-windows-output-limits/" rel="noopener noreferrer"&gt;9 min readBudgeting the Claude Context Window Before It Truncates YouThe Claude context window is one token budget shared by prompt, tools, thinking, and reply. I count tokens and guard it in code so a reply never truncates.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/ai-native-portfolio-landing-lead-roles/" rel="noopener noreferrer"&gt;6 min readThe AI-Native Portfolio: Landing Lead RolesA portfolio that lists 'used ChatGPT' reads junior. One that demonstrates systems architecture — RAG, agents, guardrails, latency budgets — reads like the lead they're trying to hire. Here's how to build the second one.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/chatgpt-changed-full-stack-engineering/" rel="noopener noreferrer"&gt;6 min readThe Day ChatGPT Changed Full-Stack EngineeringLate 2022 dropped the cost of writing software overnight. Why the bottleneck moved from syntax to judgment — and why MERN engineers were positioned to win.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · Full-Stack AI Engineer&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yaseenkhatib.streamerosai.com/about/" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Want this built for your business?
&lt;/h2&gt;

&lt;p&gt;I build what this post describes for clients — RAG chatbots on your own documents, AI added to systems you already run, custom software — at fixed prices you see before we start. Hiring instead? I'm open to senior and lead roles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yaseenkhatib.streamerosai.com/solutions/business/" rel="noopener noreferrer"&gt;See services and prices →&lt;/a&gt;&lt;a href="https://yaseenkhatib.streamerosai.com/hire/" rel="noopener noreferrer"&gt;I'm hiring&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yaseenkhatib.streamerosai.com/blog/whatsapp-chatbot-saas-vs-owning-it/" rel="noopener noreferrer"&gt;yaseenkhatib.streamerosai.com/blog/whatsapp-chatbot-saas-vs-owning-it/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>whatsapp</category>
    </item>
    <item>
      <title>Real-Time Telemetry: Why Polling Lies, and WebSockets Don't</title>
      <dc:creator>Yaseen Khatib</dc:creator>
      <pubDate>Wed, 23 Sep 2026 09:27:45 +0000</pubDate>
      <link>https://dev.to/yaseenyk04/real-time-telemetry-why-polling-lies-and-websockets-dont-10d2</link>
      <guid>https://dev.to/yaseenyk04/real-time-telemetry-why-polling-lies-and-websockets-dont-10d2</guid>
      <description>&lt;p&gt;[ EXECUTIVE TEARDOWN // TL;DR ]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Polling can't be both fresh and cheap; a push model has the server speak only when state actually changes.&lt;/li&gt;
&lt;li&gt;  Broadcast events over a persistent socket and map them onto React state with a thin subscription.&lt;/li&gt;
&lt;li&gt;  Coalesce high-frequency sources on the server to a renderable frame rate, and isolate live state so only affected components repaint.&lt;/li&gt;
&lt;li&gt;  Single-source-of-truth sync — every client identical in the same instant — is what eliminates a whole class of stale-data errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After shipping enough "live" dashboards — including the real-time layer of the CMZ portal — one truth stuck: a polling dashboard is lying most of the time. Between ticks, operators act on stale numbers; shrink the window and you DoS your own APIs with empty work. For telemetry — CPU, chat velocity, scene state — stop interrogating the server and let it speak. WebSockets push changes the instant they occur, giving every client the same value in the same frame.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why polling fails at scale
&lt;/h2&gt;

&lt;p&gt;Polling forces a bad trade: either ship latency or ship waste. At 5s, your UI is up to 5s wrong and your fleet fires a wall of redundant reads. At 500ms, you approach freshness while torching CPU, caches, and rate limits with "nothing changed" responses. There isn't a magic interval; the question itself is expensive. Flip the model so the server only emits when state actually mutates.&lt;/p&gt;

&lt;h2&gt;
  
  
  The push architecture
&lt;/h2&gt;

&lt;p&gt;The backend owns an event stream and broadcasts to subscribers over a persistent socket. No request fan-out, no timers — a value flips, the server emits, every dashboard updates in the same frame. In the pattern I call Trinity Architecture, the socket handler lives in the Reactive State / Orchestration layer, the Presentation layer just renders from state and dispatches intents, and a thin Data / Serialization Adapter shapes wire events into the in-memory model. No layer talks past its neighbor, which keeps both payloads and coupling under control.&lt;/p&gt;

&lt;p&gt;telemetry.ts&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// server: broadcast on change, not on request&lt;/span&gt;
&lt;span class="nx"&gt;metrics&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;tick&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;io&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;telemetry&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;

&lt;span class="c1"&gt;// client: subscribe once, render on push&lt;/span&gt;
&lt;span class="nf"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nx"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;telemetry&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;setMetrics&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;return &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/span&amp;gt;, &lt;/span&gt;&lt;span class="se"&gt;[])&lt;/span&gt;&lt;span class="err"&gt;;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Throttle the wire, not the truth
&lt;/h3&gt;

&lt;p&gt;A telemetry source can fire hundreds of events per second. Humans can't read that, and React can't reconcile that without jank. Shape the firehose at the edge — sample or debounce to a renderable cadence before broadcast — so the feed is truthful but frame-friendly. On &lt;a href="https://yaseenkhatib.streamerosai.com/#projects" rel="noopener noreferrer"&gt;streamerOS&lt;/a&gt; we had to respect 60fps while chat and system metrics spiked; coalescing server-side kept backpressure off the socket and the main thread, without lying about the latest value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Consuming streams in React without thrashing
&lt;/h2&gt;

&lt;p&gt;The foot-gun is wiring "telemetry" to setState and letting it reflow the whole tree each packet. Keep hot values in a small, focused store and subscribe only the components that care. I use a Trinity split: Presentation renders from selectors; the orchestrator (Zustand or an event bus) owns the source of truth and optimistic merges; the adapter translates over-the-wire shapes into minimal, denormalized state. A CPU tick should repaint one gauge, not your navbar, tables, and modals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this kills manual errors
&lt;/h2&gt;

&lt;p&gt;When every client observes the same state at the same moment, an entire class of "acted on stale data" mistakes disappears. No operator is reconciling conflicting numbers; no action races a 3s-old snapshot. The win isn't speed for its own sake — it's a single, timely source of truth that every operator shares, so decisions stop diverging.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Polling asks "has it changed?" a thousand times a minute. Push answers once, the moment it does. At scale, that's the line between "live" and "laggy."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is the live-data backbone of &lt;a href="https://yaseenkhatib.streamerosai.com/#projects" rel="noopener noreferrer"&gt;streamerOS&lt;/a&gt; and the real-time sync layer in the &lt;a href="https://yaseenkhatib.streamerosai.com/#projects" rel="noopener noreferrer"&gt;CMZ portal&lt;/a&gt; — the same playbook I reach for when correctness, smoothness, and cost need to coexist. Deciding when a system should push instead of being asked is the kind of judgment I bring to a team.&lt;/p&gt;

&lt;h2&gt;
  
  
  ~/keep-reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/websocket-telemetry-at-scale/" rel="noopener noreferrer"&gt;8 min readWebSocket Telemetry at Scale: When One Process Isn't EnoughA single WebSocket server is a weekend project; streaming telemetry to thousands across instances broke for me on streamerOS — Redis pub/sub, rooms, coalescing.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/websocket-reconnect-state-machine-react-node/" rel="noopener noreferrer"&gt;8 min readA WebSocket reconnect state machine for React and NodeReconnection logic written as ad-hoc flags always breaks. An explicit state machine with backoff, jitter and heartbeats survives flaky networks and server restarts.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://yaseenkhatib.streamerosai.com/blog/halving-websocket-payloads-messagepack-node-react/" rel="noopener noreferrer"&gt;8 min readHalving WebSocket payloads with MessagePack in Node and ReactWhere JSON over WebSockets actually costs you, what MessagePack does and does not fix, and how to batch high-frequency events so the wire is not the bottleneck.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;YK&lt;/p&gt;

&lt;p&gt;Yaseen Khatib · MERN + AI Architect&lt;/p&gt;

&lt;p&gt;Ships autonomous AI products solo — five in the last twelve months. &lt;a href="https://yaseenkhatib.streamerosai.com/about/" rel="noopener noreferrer"&gt;More about Yaseen →&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Need an engineer who can build this?
&lt;/h2&gt;

&lt;p&gt;I'm Yaseen Khatib — a Senior Full-Stack AI Engineer (MERN + TypeScript) who ships production AI systems solo. Open to senior and lead roles, remote or on-site.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://yaseenkhatib.streamerosai.com/#contact" rel="noopener noreferrer"&gt;Get in touch →&lt;/a&gt;&lt;a href="https://yaseenkhatib.streamerosai.com/products/" rel="noopener noreferrer"&gt;See what I've shipped&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yaseenkhatib.streamerosai.com/blog/real-time-telemetry-websockets-react/" rel="noopener noreferrer"&gt;yaseenkhatib.streamerosai.com/blog/real-time-telemetry-websockets-react/&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>websockets</category>
      <category>realtime</category>
    </item>
  </channel>
</rss>
