<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kokil Bhalerao on Medium]]></title>
        <description><![CDATA[Stories by Kokil Bhalerao on Medium]]></description>
        <link>https://medium.com/@kokil.bhalerao?source=rss-f9eda0fd0dfa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7NnwVL09IPE9mPhN</url>
            <title>Stories by Kokil Bhalerao on Medium</title>
            <link>https://medium.com/@kokil.bhalerao?source=rss-f9eda0fd0dfa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:37:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kokil.bhalerao/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[We killed one agent in two multi-agent systems. Only one kept the work.]]></title>
            <link>https://medium.com/@kokil.bhalerao/we-killed-one-agent-in-two-multi-agent-systems-only-one-kept-the-work-e260c1fc4828?source=rss-f9eda0fd0dfa------2</link>
            <guid isPermaLink="false">https://medium.com/p/e260c1fc4828</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[eventbridge]]></category>
            <category><![CDATA[aws-reinvent-2026]]></category>
            <category><![CDATA[aws-step-functions]]></category>
            <dc:creator><![CDATA[Kokil Bhalerao]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 07:05:47 GMT</pubDate>
            <atom:updated>2026-12-03T07:05:47.484Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The surprise first.</strong> In an AWS re:Invent workshop (ARC312-R, level 300), I switched off one agent in two versions of the same multi-agent system. Neither version completed a single booking. The difference was in what was left afterward.</p><p><strong>The setup.</strong> Every multi-agent system needs a coordination layer, and the hard question is who decides what happens next. The workshop gave us the same five-agent travel booking pipeline in two forms. Three research agents (flight, hotel, weather) run in parallel. A budget agent consolidates their results, and a planner agent writes the final itinerary. Each agent is an AWS Lambda function backed by Amazon Bedrock with a Claude model.</p><ul><li><strong>Orchestration:</strong> an AWS Step Functions state machine is the conductor. It holds the full execution state, runs the parallel step, retries, and handles failure centrally. The analogy the workshop used is a symphony conductor.</li><li><strong>Choreography:</strong> no central controller. An Amazon EventBridge rule per agent reacts to a booking event. Each agent writes its result to an Amazon DynamoDB table, and a small “completion checker” Lambda, triggered by the table’s stream, notices when all three are in and starts the budget and planner steps. The analogy was a jazz ensemble.</li></ul><p>We measured both with the same load (600 requests, 10 at a time), injected the same failure, recovered the same bookings, raced to debug a hidden fault, and added a sixth agent to each.</p><p><strong>Takeaway 1: load is not where they differ.</strong> Under normal load, both accepted requests asynchronously and submission latency was similar. Pattern choice wasn’t a performance sacrifice.</p><p><strong>Takeaway 2: a dead agent costs you different things.</strong> With the hotel agent failing, bookings in both patterns failed to complete. In orchestration, the parallel step can’t finish without all its branches, so the run fails and the flight and weather results are discarded. In choreography, those results sit in the table, and failed hotel events are captured in a dead-letter queue (a holding queue for failed messages). Fault isolation preserved work, not availability. If you want bookings to finish without every agent, you need a timeout in the fan-in that proceeds without the missing result.</p><p><strong>Takeaway 3: recovery shows the real price.</strong> Recovering 10 bookings by resubmitting through the conductor re-ran all five agents each time: 50 calls, 20 of them redundant (40%). Replaying only the hotel events in choreography took 30 calls with none repeated. The trade-off is effort and risk. Resubmitting in orchestration was one loop with no custom code, and naming each execution after its booking made it safe to re-run. The choreography replay needed a script and fan-in logic we had to own, and replays must be targeted, and agents must tolerate duplicates.</p><p><strong>Takeaway 4: loud versus silent.</strong> A broken orchestrated agent produced a Failed execution and an obvious place to look. A broken choreographed agent produced a booking that simply never completed, with no failure reported. The lesson from the workshop was that in choreography your observability has to be designed in: correlation IDs, business-level completion metrics, and timeouts.</p><p><strong>Takeaway 5: adding an agent.</strong> Adding a sixth agent to choreography meant one new rule and one target, with no change to existing components. In orchestration it meant editing the state machine definition and redeploying the conductor, where one mistake can fail every workflow.</p><p><strong>What was harder than expected.</strong> I assumed Step Functions redrive would rescue the failed bookings cheaply. It couldn’t, because our error handler sent every failure to a Fail state. Your error-handling design decides your recovery options.</p><p><strong>Where I would use each.</strong> Orchestrate when the path is deterministic, audited, or needs human approval. Choreograph when many teams own many agents and partial results are acceptable. For most production systems, use both: events as the entry and extension layer, a conductor for the critical path. The workshop also gave a practical tip: emit events from Step Functions at key milestones and keep agent code unaware of what triggered it, so you can evolve between patterns without rewriting agents.</p><p><strong>One question for you:</strong> if one step in your workflow fails tonight, what is thrown away, and who finds out first?</p><p>#AWSreInvent #AgenticAI #AmazonBedrock #StepFunctions #EventBridge #Serverless</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e260c1fc4828" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>