<?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 Raj Pattnaik on Medium]]></title>
        <description><![CDATA[Stories by Raj Pattnaik on Medium]]></description>
        <link>https://medium.com/@rajpattnaik426?source=rss-a3c5f62bb6dc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xWQamM3alXQA8qkK</url>
            <title>Stories by Raj Pattnaik on Medium</title>
            <link>https://medium.com/@rajpattnaik426?source=rss-a3c5f62bb6dc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:28:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajpattnaik426/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[Should You Really Be Using Temporal?]]></title>
            <link>https://medium.com/@rajpattnaik426/should-you-really-be-using-temporal-90089d3e4022?source=rss-a3c5f62bb6dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/90089d3e4022</guid>
            <category><![CDATA[crystal-palace]]></category>
            <category><![CDATA[temporal]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <dc:creator><![CDATA[Raj Pattnaik]]></dc:creator>
            <pubDate>Sun, 29 Nov 2026 08:21:54 GMT</pubDate>
            <atom:updated>2026-11-29T08:31:14.768Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BzwLmDAD-5haqz0dU01L_g.png" /></figure><p>I’m going to discuss the engineering perspective on the decision to use a distributed workflow engine rather than building one in-house.</p><p>Let’s discuss a bit how big Temporal is right now in market. In september 2026 raised $550M in it’s Series E funding round at a valuation of $12.5B. They have secured major clients in OpenAI, Netflix, NVIDIA, Snap and more, they’re also the FOS sponsor for crystal palace (major PL club) for this season.</p><p>Now let’s discuss in brief what’s actually Temporal selling and why are such large tech giants willing to introduce another infra dependency despite having an already large and complex tech stack. I’ve used Temporal in my work for a feature and it demonstrates a very practical use of it.</p><p>Consider a technician working on a maintenance job and using a SMS method for it’s checkins,completions,final payments rather than using app. Throughout a visit, they send SMS updates: first a check-in, then a few status updates, and finally a completion notification. Each update needs to reach a downstream service in exactly the order it was received, and each API call can independently fail.</p><p>Now here’s the main question that comes to my mind…..is that implementation possible using let’s say sqs and postgres?</p><p>Absolutely !!</p><p>Here’s how it goes:<br><strong>Receive:</strong> The technician’s SMS reaches our API through Twilio. The API saves it to <strong>Postgres</strong> right away so nothing gets lost.</p><p><strong>Queue:</strong> The update goes onto an <strong>SQS FIFO</strong> queue. Each visit gets its own lane, so updates stay in the order they arrived.</p><p><strong>Process:</strong> A <strong>worker</strong> takes one update at a time per visit and sends it to the <strong>Visit API</strong>. If the call fails, the worker retries a few times.</p><p><strong>Stop on failure:</strong> If an update still fails, the worker marks the visit failed in Postgres. Later updates for that visit wait, so nothing is applied out of order.</p><p><strong>Finish:</strong> The visit closes when it’s completed or cancelled. A <strong>scheduled job</strong> closes visits that go quiet for too long.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KFFZuiz534E3WY7g6KZiEQ.png" /><figcaption>In-house version: the four moving parts</figcaption></figure><p>So why use Temporal when it’s a fairly simple implementation?<br>Well from initial observation using Temporal is 1 workflow rather than 4 separate components we need to keep track of. Now every update for a visit goes to the same workflow which processes them one at a time so no need for setting FIFO lanes or locks. Temporal has it’s own retry logic and queue timeouts, no recovery code to write if pods crash mid process, fairly easy to debug in Temporal UI, has it’s own cron jobs.</p><p>It seems we have figured out why the use of Temporal makes sense now…..it’s not superior architecture (well maybe), not because making it in house sucks and certainly not because it eliminates the complexities of distributed systems. It simplifies engineering effort, reduces the cost of ownership, and frees teams from having to build and maintain the infrastructure themselves.</p><p>But wait there’s more…..</p><p>The real comparison is:</p><blockquote>{Total Cost of Ownership} = {Infrastructure} + {Engineering} + {Maintenance} + {Operational Risk}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pkhi74nJ1J41XKP4EpHN5g.png" /><figcaption>Cost comparison</figcaption></figure><p><strong>Infrastructure.</strong> This is the only area where in-house wins. SQS charges per request, and you probably already run Postgres. Self-hosted Temporal needs its own server, database and search cluster running all the time, whether traffic is high or low. On the cloud bill alone, in-house is cheaper.</p><p><strong>Engineering.</strong> In-house, you build the queue, the ordering, the retries, a rule to stop on failure, timeouts, protection against duplicates, and recovery after crashes. Then you test every edge case: a pod dying mid-update, the same message arriving twice, two updates racing each other. That’s weeks of work. With Temporal, my workflow was about 200 lines, almost all of it business logic.</p><p><strong>Maintenance.</strong> An in-house solution has to be maintained by whoever built it, and every new workflow repeats the same plumbing. Before long you’re maintaining your own mini-Temporal. With Temporal, you maintain one cluster, and that cost is shared across every workflow you put on it.</p><p><strong>Operational risk.</strong> This is the one teams forget. When an in-house system fails, in my example a technician’s check-in goes missing, or a completion lands before its check-in, or a visit gets stuck. Those mistakes are quiet, hard to trace and expensive: billing disputes, missed SLAs, support tickets. Temporal shows every step of every workflow in its UI, so you can see exactly where a visit stopped.</p><p><strong>Final Questions:</strong></p><p>So finally before making a choice I’d like all engineers to think of these questions:</p><ul><li><strong>How complex is the workflow we’re trying to orchestrate?</strong></li><li><strong>What infrastructure do we already have?</strong></li><li><strong>What is the actual cost of maintaining an in-house solution?</strong></li><li><strong>What does adopting Temporal introduce?</strong></li><li><strong>What is the cost of failure?</strong></li><li><strong>Will this problem exist across multiple teams?</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90089d3e4022" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>