<?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"><channel><title><![CDATA[BuildKodiq Blogs]]></title><description><![CDATA[Engineering notes from BuildKodiq, a two-engineer AI and web studio. Real-time apps, Next.js, Go, Python, Temporal, AI agents and automation.]]></description><link>https://buildkodiq.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6b05a8bc7bd7cdbb465444c2/7626e025-be72-42a8-b113-6f8f15549872.png</url><title>BuildKodiq Blogs</title><link>https://buildkodiq.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 21:13:52 GMT</lastBuildDate><atom:link href="https://buildkodiq.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[5 things to fix before your Lovable or Bolt app gets real users]]></title><description><![CDATA[By Shubham Maurya, co-founder of BuildKodiq · 2026-11-30 Before real users sign up, fix five things in an app you built with Lovable, Bolt.new, Replit, v0…]]></description><link>https://buildkodiq.hashnode.dev/5-things-to-fix-before-your-lovable-or-bolt-app-gets-real-users</link><guid isPermaLink="true">https://buildkodiq.hashnode.dev/5-things-to-fix-before-your-lovable-or-bolt-app-gets-real-users</guid><category><![CDATA[supabase]]></category><category><![CDATA[stripe]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[Shubham Maurya]]></dc:creator><pubDate>Sun, 29 Nov 2026 18:40:16 GMT</pubDate><content:encoded><![CDATA[<p>By <a href="https://buildkodiq.com/team/shubham-maurya">Shubham Maurya</a>, co-founder of BuildKodiq · 2026-11-30</p>
<p>Before real users sign up, fix five things in an app you built with Lovable, Bolt.new, Replit, v0 or Cursor. Turn on row-level security for every table. Keep secret keys out of the browser. Update payments from Stripe webhooks, not from the success page. Put the database schema in migrations, with indexes and tested backups. Add error tracking, a few tests on sign-up, login and payments, and CI that runs them.</p>
<p>None of this means the tool did a bad job. AI app builders are very good at getting a working first version in front of people. They build what you ask for, and most prompts are about screens and features, not about who can read which row. These five checks are what we look at first when a founder asks us whether their app is ready for real users.</p>
<h2>1. Can one user read another user's data?</h2>
<p>Many apps built with these tools use Supabase. The browser talks to the database directly, using the project URL and the anon key (newer projects call it the publishable key). That key is meant to be public. Anyone can open the browser's developer tools and copy it.</p>
<p>That is safe only because of row-level security (RLS). RLS is a Postgres feature: each table has policies that decide which rows a request can read or change. If RLS is off on a table, anyone with the public key can read the whole table, and often change it too. If RLS is on but a policy says using (true), the effect is much the same.</p>
<p>What to look for:</p>
<ul>
<li>In the Supabase dashboard, any table marked as unrestricted, or a warning from the built-in security advisor.</li>
<li>Policies with using (true) or with check (true) on tables that hold user data.</li>
<li>Tables that link rows to users by a column nobody checks, such as user_id or org_id.</li>
<li>Storage buckets that are public but hold private files such as invoices or ID documents.</li>
</ul>
<p>How to fix it: turn RLS on for every table in the public schema, then add one policy per action, tied to the signed-in user. A minimal version for a table of projects owned by users:</p>
<pre><code class="language-sql">alter table public.projects enable row level security;

create policy "Users read their own projects"
on public.projects for select
to authenticated
using ((select auth.uid()) = user_id);

create policy "Users create their own projects"
on public.projects for insert
to authenticated
with check ((select auth.uid()) = user_id);
</code></pre>
<p>Add update and delete policies the same way, and only if users should be able to do those things. Then test it. Sign in as one user and try to read another user's rows, and try the API with only the public key and no sign-in. Both should return nothing. If your app has teams or organizations, the policies need to check membership, and that is worth writing carefully once rather than prompting several times.</p>
<h2>2. Are secret keys shipped in the browser?</h2>
<p>Anything your frontend code can read, a visitor can read. In a Vite app, which is what Lovable and Bolt.new usually generate, every environment variable that starts with VITE_ goes into the JavaScript bundle. In Next.js, the same is true of variables that start with NEXT_PUBLIC_. That is fine for the Supabase URL and anon key. It is not fine for anything else.</p>
<p>What to look for:</p>
<ul>
<li>The Supabase service_role key, or a newer secret key that starts with sb_secret_, anywhere in frontend code. This key skips RLS completely.</li>
<li>A Stripe secret key (sk_live_ or sk_test_), an OpenAI or Anthropic API key, or email and SMS provider keys in the frontend.</li>
<li>Keys committed to the Git history, even if a later commit removed them.</li>
<li>Calls to paid APIs, such as AI models, made straight from the browser.</li>
</ul>
<p>A quick check: build the app, then search the output folder for sk_live, sk_test, service_role and sb_secret. Also open the deployed site, view the JavaScript files in the browser's developer tools and search the same strings.</p>
<p>How to fix it: move every call that needs a secret to the server. That can be a Supabase Edge Function, a Next.js route handler, or a small backend in Node or Python. The browser calls your function; your function holds the key, checks who the user is, and calls the other service. Then rotate every key that was ever exposed, in each provider's dashboard. Deleting the key from the code is not enough, because the old key still works and may already be copied.</p>
<h2>3. Does a payment really update your database?</h2>
<p>A common first version works like this: the user pays on Stripe Checkout, Stripe sends them back to /success, and the success page marks them as paid. That breaks in ordinary ways. The user closes the tab before the redirect. The page is opened again later. Someone visits /success without paying. A renewal fails a month later and nothing in your database changes.</p>
<p>Stripe tells your server what happened through webhooks: signed messages sent to an endpoint you own. Your database should change when a verified webhook arrives, not when a page loads. Stripe's own docs recommend this for fulfilling orders.</p>
<p>What to look for:</p>
<ul>
<li>Paid status set from the browser or from the success page.</li>
<li>A webhook endpoint that doesn't check the Stripe signature.</li>
<li>No handling for failed payments, cancelled subscriptions or refunds.</li>
<li>The same event processed twice. Stripe can deliver an event more than once, so a duplicate must be harmless.</li>
</ul>
<p>How to fix it: add a webhook endpoint that verifies the signature, records each event ID so a repeat is skipped, and updates the subscription row. A minimal Next.js route handler with the official stripe package:</p>
<pre><code class="language-js">import Stripe from "stripe";

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);

export async function POST(req) {
  const body = await req.text(); // the raw body, unparsed
  let event;
  try {
    event = stripe.webhooks.constructEvent(
      body,
      req.headers.get("stripe-signature"),
      process.env.STRIPE_WEBHOOK_SECRET,
    );
  } catch {
    return new Response("Invalid signature", { status: 400 });
  }

  if (await alreadyHandled(event.id)) return Response.json({ received: true });

  switch (event.type) {
    case "checkout.session.completed":
    case "customer.subscription.updated":
    case "customer.subscription.deleted":
    case "invoice.payment_failed":
      await syncSubscription(event.data.object);
      break;
  }

  await markHandled(event.id);
  return Response.json({ received: true });
}
</code></pre>
<p>alreadyHandled, markHandled and syncSubscription are your own functions; a table of processed event IDs with a unique constraint is enough for the first two. The signature check needs the raw request body, so don't parse it as JSON first. In a Supabase Edge Function, which runs on Deno, use the async version, constructEventAsync.</p>
<p>Two more details. When your server creates payments or subscriptions, pass an idempotency key, so a retried request doesn't charge twice. And decide what a failed renewal means in your app: a grace period, a banner, or locked features. Then test it with the Stripe CLI, which can forward events to your local endpoint and trigger test events.</p>
<h2>4. Will your data model survive real data?</h2>
<p>Prompt-driven apps often change the database by hand in the dashboard, one request at a time. After a few months nobody knows exactly what the schema is, and the staging and production databases don't match.</p>
<p>What to look for:</p>
<ul>
<li>No migrations folder, or one that doesn't match the live database.</li>
<li>Important data stored in one big JSON column instead of real columns and tables.</li>
<li>No foreign keys, so deleting a user leaves orphaned rows behind.</li>
<li>No indexes beyond primary keys. Postgres doesn't index foreign key columns for you, and RLS policies filter on columns like user_id on every query.</li>
<li>No tested backup. A backup you have never restored is a guess.</li>
</ul>
<p>How to fix it: pull the current schema into migrations and make every change through them from now on. With the Supabase CLI, supabase db pull captures the live schema, supabase migration new starts a change, and supabase db push applies it. Move the fields you filter, sort or join on out of JSON and into columns. Add foreign keys and indexes for the columns your queries and policies use, for example:</p>
<pre><code class="language-sql">create index projects_user_id_idx on public.projects (user_id);
</code></pre>
<p>Then check what backups your database plan includes, and restore one into a separate project once to prove it works.</p>
<h2>5. Can someone other than the AI maintain the code?</h2>
<p>The last check is about the next six months. If every change is a new prompt, and every prompt breaks something that used to work, the code has stopped being something you control.</p>
<p>What to look for:</p>
<ul>
<li>Files with thousands of lines, where one component holds the UI, the data fetching and the business rules.</li>
<li>No tests at all, so nobody knows a change broke sign-up until a user says so.</li>
<li>No error tracking. Errors happen in users' browsers and you never see them.</li>
<li>No staging environment: changes go straight to the live app.</li>
<li>The code only lives in the builder tool, not in a GitHub repository you own.</li>
</ul>
<p>How to fix it, in this order:</p>
<ul>
<li>Connect the project to a GitHub repository in your own account.</li>
<li>Add error tracking such as Sentry to the frontend and backend, with alerts sent to a person.</li>
<li>Write a few end-to-end tests, for example with Playwright, for the paths that make or lose money: sign-up, login, the main action, and payment.</li>
<li>Run those tests in CI, such as GitHub Actions, on every pull request.</li>
<li>Add a staging environment with its own database and Stripe test mode.</li>
<li>Split the largest files as you touch them, not all at once.</li>
</ul>
<p>You can keep using AI tools after this. The difference is that a change which breaks sign-up or payments is caught before it reaches users.</p>
<h2>Should you fix the app or rebuild it?</h2>
<p>Most of the time, fix it. Screens and flows that users already understand are worth keeping. The risk usually sits in four places: data access, secrets, payments and background jobs. Those can be fixed or rebuilt one at a time while the app stays live.</p>
<p>A larger rebuild makes sense when several of these are true:</p>
<ul>
<li>Business rules live only in the browser and would all need to move to a server.</li>
<li>The data model is mostly JSON blobs and every feature depends on their shape.</li>
<li>You are moving off a platform that doesn't export code, such as Bubble.</li>
<li>Fixing each issue would cost more than building that part again, and you can say why.</li>
</ul>
<p>Even then, rebuild in stages. Keep the old app running, move one part at a time, and switch over when each part is tested.</p>
<h2>What does a production audit check?</h2>
<p>When we audit an app built with an AI tool, we read the code, the database, the auth rules and the deploy setup, and test the five areas above. The result is a written list of what to keep, what to fix and what to rebuild, with a quote for each stage. The work then happens in your own GitHub, Supabase, Stripe and hosting accounts.</p>
<p>We do this as a fixed-scope service for founders who built a first version with these tools. <a href="https://buildkodiq.com/services/ai-app-to-production">See how we take an AI-built app to production.</a></p>
<h2>Checklist before launch</h2>
<table>
<thead>
<tr>
<th></th>
<th>What to look for</th>
<th>How to fix it</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Database access</strong></td>
<td>Tables with RLS off, or policies that allow everything</td>
<td>Turn on RLS and add a policy per action tied to auth.uid(); test as two users</td>
</tr>
<tr>
<td><strong>Secrets</strong></td>
<td>Service role, Stripe secret or AI keys in the frontend bundle or Git history</td>
<td>Move calls to server or edge functions; rotate every exposed key</td>
</tr>
<tr>
<td><strong>Payments</strong></td>
<td>Paid status set by the success page; unsigned or missing webhooks</td>
<td>Verify webhook signatures, skip repeated events, handle failures and cancellations</td>
</tr>
<tr>
<td><strong>Data model</strong></td>
<td>No migrations, JSON blobs, no indexes, untested backups</td>
<td>Migrations for every change, real columns, indexes, one test restore</td>
</tr>
<tr>
<td><strong>Maintainability</strong></td>
<td>Giant files, no tests, no error tracking, no staging</td>
<td>GitHub, Sentry, end-to-end tests in CI, a staging environment</td>
</tr>
</tbody></table>
<ul>
<li>Every table has RLS on, and one user can't read another's rows.</li>
<li>Search the built site for sk_live, service_role and sb_secret, and find nothing.</li>
<li>A paid, failed and cancelled subscription each show up correctly in your database.</li>
<li>The schema is in migrations, and you have restored a backup once.</li>
<li>Sign-up, login and payment have tests that run on every change, and errors reach a person.</li>
</ul>
<p>Shubham Maurya led our Visneo and CareerCraft360 builds, and Rishabh Maurya led Aircreator. CareerCraft360 runs Stripe subscriptions with webhooks, Aircreator uses Supabase for auth, and Visneo runs production and staging environments with Sentry. The case studies are linked below, or email <a href="mailto:hello@buildkodiq.com">hello@buildkodiq.com</a>.</p>
<h2>Related projects</h2>
<ul>
<li><a href="https://buildkodiq.com/work/careercraft360">CareerCraft360</a></li>
<li><a href="https://buildkodiq.com/work/aircreator">Aircreator: unified social publishing</a></li>
<li><a href="https://buildkodiq.com/work/visneo">Visneo.ai</a></li>
</ul>
<hr />
<p><em>Originally published on <a href="https://buildkodiq.com/blog/lovable-bolt-app-production-checklist">buildkodiq.com</a>. BuildKodiq is a two-engineer studio building AI agents, automation, dashboards, MVPs and websites. Questions: <a href="mailto:hello@buildkodiq.com">hello@buildkodiq.com</a>.</em></p>
]]></content:encoded></item><item><title><![CDATA[n8n vs Make vs Zapier for a small business]]></title><description><![CDATA[By Shubham Maurya, co-founder of BuildKodiq · 2026-11-29 Start with Zapier if you need a few simple automations between popular apps and nobody on the team…]]></description><link>https://buildkodiq.hashnode.dev/n8n-vs-make-vs-zapier-for-a-small-business</link><guid isPermaLink="true">https://buildkodiq.hashnode.dev/n8n-vs-make-vs-zapier-for-a-small-business</guid><category><![CDATA[n8n]]></category><category><![CDATA[automation]]></category><category><![CDATA[Zapier]]></category><dc:creator><![CDATA[Shubham Maurya]]></dc:creator><pubDate>Sat, 28 Nov 2026 20:42:29 GMT</pubDate><content:encoded><![CDATA[<p>By <a href="https://buildkodiq.com/team/shubham-maurya">Shubham Maurya</a>, co-founder of BuildKodiq · 2026-11-29</p>
<p>Start with Zapier if you need a few simple automations between popular apps and nobody on the team writes code. Choose Make when your flows need branching, loops and data reshaping and you like to see the whole flow on one canvas. Choose n8n when workflows get large, run at high volume, need code or AI steps, or must run on your own server.</p>
<p>We build with all three. Below is how they differ, three of our own builds, when to move from Zapier to n8n, and a checklist.</p>
<h2>How do n8n, Make and Zapier differ?</h2>
<p>All three connect apps with a trigger and a series of steps. They differ in where they run, how they charge, and how far they stretch before you hit a wall.</p>
<ul>
<li>Self-hosting: only n8n can run on your own server, for example with Docker; it also has a hosted cloud. Zapier and Make are hosted services only. Self-hosting keeps data on infrastructure you control, but you take on updates, backups and uptime. n8n's licence is fair-code rather than classic open source, so read its terms if you plan to resell or embed it.</li>
<li>Pricing model: in general terms, Zapier charges by tasks (roughly, each action that runs), Make by operations (each module run in a scenario), and n8n Cloud by workflow executions, however many steps each one has. Self-hosted n8n costs what the server costs. Plans and limits change, so check current pricing against your real volumes.</li>
<li>Complexity ceiling: Zapier is built for straight-line flows, with filters and paths for simple branching. Make's visual canvas handles routers, loops over lists and data reshaping. n8n handles large node graphs with branches, merges, loops and sub-workflows; our largest is more than 100 nodes.</li>
<li>Code steps: Zapier has small code steps in JavaScript or Python. Make relies mostly on built-in functions and an HTTP module for any API; its code options are more limited, so check the current docs. n8n has a Code node in JavaScript and Python, so when an integration falls short you write the missing piece inside the workflow.</li>
<li>Error handling: Zapier shows failed runs in its history, notifies you and lets you replay them. Make lets you attach error-handler routes to a module to retry, skip or stop. n8n has retry settings on each node, an option to continue on failure, and a separate error workflow that runs when any workflow fails, which is where we send alerts.</li>
<li>AI steps: all three can call AI models. n8n also has AI agent and LangChain nodes, so document analysis, routing on the result and multi-step agent work happen inside the workflow. For anything beyond a single prompt, that is where we have had the most room.</li>
</ul>
<h2>What have we built with each?</h2>
<p>Deal flow for a venture capital firm, on n8n. The investment team was reading every inbound deck and updating its dashboard and CRM by hand. Rishabh led a build of n8n workflows with more than 100 nodes that now process 400+ inbound deals a month. Each deck gets AI analysis with LangChain, enriched with founder, advisor and market data. Deals are assigned by team expertise, the live dashboard and the CRM fill in automatically, and deals are shared on WhatsApp with files organised. Dashboard management time fell by 90%, and the team saved more than 150 hours in 15 days.</p>
<p>This is n8n territory: document processing, branching on the AI's analysis, custom code and steady volume, in one system.</p>
<p>Back-office automation for a cleaning company, on Zapier. Bookings, timesheets, invoices and payments lived in separate tools and were re-typed by hand. We connected QuickBooks, TSheets, Calendly and Stripe through Zapier across more than ten workflows, and manual effort dropped by about 40%.</p>
<p>This is the job Zapier does well: well-known SaaS apps, clear triggers, simple steps and no server to look after.</p>
<p>Our own n8n workflow suite. Seven production workflows for the admin small teams repeat every day: an invoice generator, a lead capture pipeline, an Instagram and LinkedIn auto-poster, a WhatsApp AI responder, Google review alerts and an uptime monitor, using OpenAI, Google Sheets and Telegram. It's an internal build, and a fair picture of what a small business usually automates first.</p>
<h2>When should you move from Zapier to n8n?</h2>
<p>Not just because n8n can do more. A Zapier setup that works and costs little should stay where it is. Move when you see these signs:</p>
<ul>
<li>Your bill grows quickly with volume because every step of every run counts.</li>
<li>Zaps are chained together to work around a missing loop or branch.</li>
<li>You keep adding code steps just to reshape data.</li>
<li>You need AI steps that do more than one prompt: reading documents, routing on the result, keeping context.</li>
<li>Data has to stay on servers you control.</li>
<li>Failures go unnoticed until a customer tells you.</li>
</ul>
<p>Move one workflow at a time. Write down what the Zap does, rebuild it in n8n with error handling and alerts, test it on recent real data, then switch the Zap off.</p>
<h2>n8n, Make or Zapier: which should you choose?</h2>
<ul>
<li>A few simple flows between popular apps, and nobody writes code: Zapier.</li>
<li>Branching, lists and data reshaping, you like a visual canvas, and hosted is fine: Make.</li>
<li>Large or high-volume workflows, code or AI steps, or data on your own server: n8n.</li>
<li>Someone on the team, or a partner, can look after a server: self-hosted n8n is an option. If not, use n8n Cloud.</li>
<li>Already deep in one tool and it mostly works: stay, and fix the fragile parts first.</li>
<li>Whichever you pick: add alerts for failed runs, keep a short note of what each workflow does, and give every workflow an owner.</li>
</ul>
<h2>Short answer</h2>
<p>Zapier for a handful of simple flows between popular apps. Make for visual flows with branching and data reshaping. n8n for large, high-volume, code-heavy or AI-heavy workflows, or when data must stay on your own server. Check current pricing for each against your real volumes before you commit.</p>
<p>Shubham Maurya leads our automation work for small businesses, and Rishabh Maurya led the deal-flow build. The case studies are linked below, or email <a href="mailto:hello@buildkodiq.com">hello@buildkodiq.com</a>.</p>
<h2>Related projects</h2>
<ul>
<li><a href="https://buildkodiq.com/work/vc-deal-flow">Deal flow automation for a venture capital firm</a></li>
<li><a href="https://buildkodiq.com/work/cleaning-company-automation">Cleaning Company Back-office Automation</a></li>
<li><a href="https://buildkodiq.com/work/n8n-workflow-suite">n8n Workflow Suite</a></li>
</ul>
<hr />
<p><em>Originally published on <a href="https://buildkodiq.com/blog/n8n-vs-make-vs-zapier-small-business">buildkodiq.com</a>. BuildKodiq is a two-engineer studio building AI agents, automation, dashboards, MVPs and websites. Questions: <a href="mailto:hello@buildkodiq.com">hello@buildkodiq.com</a>.</em></p>
]]></content:encoded></item><item><title><![CDATA[Temporal vs Inngest vs DBOS: choosing a durable workflow engine]]></title><description><![CDATA[By Rishabh Maurya, co-founder of BuildKodiq · 2026-11-29 Pick Temporal when workflows are long-running, high-volume or fan out across many services, and…]]></description><link>https://buildkodiq.hashnode.dev/temporal-vs-inngest-vs-dbos-choosing-a-durable-workflow-engine</link><guid isPermaLink="true">https://buildkodiq.hashnode.dev/temporal-vs-inngest-vs-dbos-choosing-a-durable-workflow-engine</guid><category><![CDATA[temporal]]></category><category><![CDATA[PostgreSQL]]></category><category><![CDATA[workflow]]></category><dc:creator><![CDATA[Shubham Maurya]]></dc:creator><pubDate>Sat, 28 Nov 2026 20:41:07 GMT</pubDate><content:encoded><![CDATA[<p>By <a href="https://buildkodiq.com/team/rishabh-maurya">Rishabh Maurya</a>, co-founder of BuildKodiq · 2026-11-29</p>
<p>Pick Temporal when workflows are long-running, high-volume or fan out across many services, and you can run a dedicated workflow service or pay for Temporal Cloud. Pick Inngest when your app is TypeScript or serverless and the work is triggered by events in that app: you get durable steps without running workers. Pick DBOS when you already run Postgres and want durable workflows as a library inside your existing service, with no extra server.</p>
<p>We have Temporal in production on SpotBeam, a broadcast ad-delivery pipeline, and on a workflow engine for a US software platform. We have used Inngest for long-running syncs, forecasts and agent runs in an AI product for grocery stores. We haven't shipped a client project on DBOS yet, so where this post covers DBOS it describes the design, not our production experience.</p>
<h2>What is durable execution?</h2>
<p>Durable execution means a multi-step job saves its progress as it runs, so a crash, a deploy or a failed API call doesn't lose the job or repeat the steps that already finished. When the process comes back, the job carries on from the last completed step.</p>
<p>Without it, you build the same thing by hand: a status column, a retry table, a cron job that looks for stuck rows, and recovery code nobody wants to touch. Temporal, Inngest and DBOS all give you this as a programming model. You write the steps as ordinary code; the engine records each step's result and retries failures by policy.</p>
<p>One rule applies to all three: steps that touch the outside world should be idempotent. A step can be retried after it did its work but before its result was saved, and running it twice must be harmless.</p>
<h2>How does Temporal work?</h2>
<p>Temporal splits the system in two. The Temporal Service stores every workflow's event history and hands out work; it is open source and self-hostable, or Temporal runs it for you as Temporal Cloud. Your code runs in workers: processes you deploy that poll task queues for work.</p>
<p>Workflows are the orchestration code. They must be deterministic, because Temporal rebuilds a workflow's state by replaying its history. Activities are the steps that do real work, such as calling an API, transcoding a file or sending an email, and they can fail and retry freely. Signals let outside events reach a running workflow, which is how a workflow can wait days for a person without polling.</p>
<p>There are official SDKs for Go, Java, TypeScript, Python and .NET, among others. Different kinds of work can go on different task queues, each served by its own pool of workers that scales on its own.</p>
<p>The cost is operations. Self-hosting means running the Temporal Service and its database and keeping both healthy. Temporal Cloud removes that work for a fee; check current pricing.</p>
<h2>How does Inngest work?</h2>
<p>Inngest is event-driven. Your app sends events, such as a user signing up or an invoice being paid, and you write functions that run when a matching event arrives or on a schedule. Inside a function, each step is a checkpoint: its result is saved, and if a later step fails, only that step is retried.</p>
<p>The main difference from Temporal is where your code runs. Inngest calls your functions over HTTP, at an endpoint in your own app, one step at a time. That means functions can live in a serverless deployment with no long-running workers. A function can also sleep for days or wait for another event, which covers approvals and other human input.</p>
<p>Most teams use Inngest as a hosted service, and it can also be self-hosted; check the current licence and self-hosting docs. TypeScript is its main SDK, and there are Python and Go SDKs too.</p>
<h2>How does DBOS work?</h2>
<p>DBOS puts durable execution in a library. In your existing Python or TypeScript app, you mark functions as workflows and steps, and DBOS saves each step's result in a Postgres database. If the process crashes, DBOS finds the workflows that didn't finish and resumes each one from its last completed step.</p>
<p>There is no separate orchestration server. Workflow state lives in Postgres, next to your own data, where you can query it with SQL. Workflows can sleep durably and wait for messages, which covers pauses for a person. The library is open source; DBOS also offers hosted tooling, so check what's current.</p>
<h2>Temporal vs Inngest vs DBOS: how do they compare?</h2>
<table>
<thead>
<tr>
<th></th>
<th>Temporal</th>
<th>Inngest</th>
<th>DBOS</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Hosting model</strong></td>
<td>A separate service (self-hosted or Temporal Cloud) plus workers you run</td>
<td>A hosted or self-hosted service that calls steps in your app over HTTP</td>
<td>A library inside your app, with Postgres as its only dependency</td>
</tr>
<tr>
<td><strong>Language support</strong></td>
<td>SDKs for Go, Java, TypeScript, Python, .NET and more</td>
<td>TypeScript-first, with Python and Go</td>
<td>Python and TypeScript; check its docs for other languages</td>
</tr>
<tr>
<td><strong>Where state is stored</strong></td>
<td>An event history for each workflow, in its own database</td>
<td>Step results, saved in its service</td>
<td>Step checkpoints, in your Postgres</td>
</tr>
<tr>
<td><strong>Human-in-the-loop</strong></td>
<td>Sends signals to a running workflow</td>
<td>Waits for a matching event</td>
<td>Waits for a message sent to the workflow</td>
</tr>
<tr>
<td><strong>Ops burden</strong></td>
<td>Highest self-hosted; low with Temporal Cloud</td>
<td>Low with hosted Inngest</td>
<td>Lowest if you already run Postgres well</td>
</tr>
<tr>
<td><strong>Best fit</strong></td>
<td>Complex, long-running, high-volume or multi-language workflows</td>
<td>Event-driven background work inside a TypeScript or serverless app</td>
<td>Adding durable workflows to an existing Python or TypeScript service on Postgres</td>
</tr>
</tbody></table>
<p>In all three, a workflow paused for a person costs almost nothing while it waits.</p>
<p><em>Diagram (<a href="https://buildkodiq.com/blog/temporal-vs-inngest-vs-dbos">see it on the original post</a>): Three ways to make the same job durable. Temporal keeps each workflow's history in its own service and hands work to your workers; Inngest calls your app's steps over HTTP and saves each result; DBOS saves each step in your own Postgres. In all three, a crashed job resumes from the last completed step.</em></p>
<h2>When did we choose Temporal?</h2>
<p>SpotBeam automates how a US broadcast ad-distribution company checks, converts and delivers TV and radio commercials to stations. Each order has many steps. Some take minutes (transcoding), some call systems we don't control, and one can wait days for a client to re-upload a bad file. Every station needs its own format, documents and delivery method, and a missed or wrong delivery is not an option.</p>
<ul>
<li>One parent workflow per order: validate the media, make a preview and back up the original, transcode once per format, generate the station documents (PDF, XML, BXF), deliver, then notify the client.</li>
<li>A child workflow per station, delivering in parallel by its own method (Signiant, Aspera, FTP, S3 or Google Drive) and retrying on its own.</li>
<li>A pause on a signal when a file fails validation: the workflow emails the client and waits until they re-upload or cancel.</li>
<li>Separate task queues for media, transcode, documents, notifications, distribution and the orchestrator, each scaling on its own on Kubernetes.</li>
<li>Integration with the client's existing C# services over RabbitMQ, instead of a rewrite.</li>
</ul>
<p>That mix is where Temporal earns its operating cost: fan-out with independent retries, long waits on people, and worker pools that scale separately.</p>
<p>We also used Temporal for a US software platform whose multi-step automations used to fail halfway and had to be restarted by hand. The new workflows pause, retry and resume, including content publishing across social platforms from scheduling to posting.</p>
<p>On the AI product for independent grocery stores, we used Inngest instead, for long-running syncs, forecasts and agent runs, with logs you can query for every workflow. The app is Next.js and FastAPI deployed on Vercel, where steps called over HTTP fit without a separate pool of workers.</p>
<h2>When is a plain queue enough?</h2>
<p>More often than people expect. If a job is one step, finishes in seconds and is safe to run twice, a queue with retries or a cron job is simpler, and you should use it. Sending a welcome email, resizing an image or refreshing a cache don't need a workflow engine.</p>
<p>Move to durable execution when you notice you are building one by hand: the job has several steps that call outside systems, it can run for minutes or days, it has to wait for a person, or a half-finished run leaves data in a bad state. That was the line on SpotBeam.</p>
<h2>Which durable workflow engine should you choose?</h2>
<ul>
<li>Is the work one short step that is safe to repeat? Use a queue or a cron job.</li>
<li>Is your app TypeScript or serverless, and is the work triggered by events in that app? Start with Inngest.</li>
<li>Do you already run Postgres and want durability without another service? Try DBOS.</li>
<li>Do workflows fan out across many services, run for days, or need several worker pools or languages? Use Temporal.</li>
<li>Can your team run and upgrade a stateful cluster? If not, use Temporal Cloud or a hosted option rather than self-hosting.</li>
<li>Whichever you pick: write the process down first, keep steps idempotent, and build a status view so people can see where every job is.</li>
</ul>
<p><em>Diagram (<a href="https://buildkodiq.com/blog/temporal-vs-inngest-vs-dbos">see it on the original post</a>): Pick your engine: one short step that is safe to repeat needs only a queue or a cron job; a TypeScript or serverless app with event-triggered work starts with Inngest; a team already on Postgres that wants no extra service tries DBOS; workflows that fan out across many services, run for days or need several worker pools or languages use Temporal.</em></p>
<p>Rishabh Maurya leads our durable workflow work. Our earlier post, Temporal in production, covers the SpotBeam build in more detail; the case studies are linked below, or email <a href="mailto:hello@buildkodiq.com">hello@buildkodiq.com</a>.</p>
<h2>Related projects</h2>
<ul>
<li><a href="https://buildkodiq.com/work/spotbeam">SpotBeam: ad order automation &amp; distribution</a></li>
<li><a href="https://buildkodiq.com/work/durable-workflow-engine">Durable Workflow Engine</a></li>
</ul>
<hr />
<p><em>Originally published on <a href="https://buildkodiq.com/blog/temporal-vs-inngest-vs-dbos">buildkodiq.com</a>. BuildKodiq is a two-engineer studio building AI agents, automation, dashboards, MVPs and websites. Questions: <a href="mailto:hello@buildkodiq.com">hello@buildkodiq.com</a>.</em></p>
]]></content:encoded></item><item><title><![CDATA[Temporal in production: durable order workflows with parallel deliveries and human pauses]]></title><description><![CDATA[By Rishabh Maurya, co-founder of BuildKodiq · 2026-11-22 SpotBeam automates how a US broadcast ad-distribution company gets TV and radio commercials to…]]></description><link>https://buildkodiq.hashnode.dev/temporal-in-production-durable-order-workflows-with-parallel-deliveries-and-human-pauses</link><guid isPermaLink="true">https://buildkodiq.hashnode.dev/temporal-in-production-durable-order-workflows-with-parallel-deliveries-and-human-pauses</guid><category><![CDATA[temporal]]></category><category><![CDATA[golang]]></category><category><![CDATA[Python]]></category><category><![CDATA[Kubernetes]]></category><dc:creator><![CDATA[Shubham Maurya]]></dc:creator><pubDate>Sat, 28 Nov 2026 18:55:22 GMT</pubDate><content:encoded><![CDATA[<p>By <a href="https://buildkodiq.com/team/rishabh-maurya">Rishabh Maurya</a>, co-founder of BuildKodiq · 2026-11-22</p>
<p>SpotBeam automates how a US broadcast ad-distribution company gets TV and radio commercials to stations. Before it, every order was handled by hand: check the files, make a preview, convert to each station's format, create the station documents, deliver, confirm. Every station wants a different video format, a different document set and a different delivery method, and a missed or wrong delivery is not an option.</p>
<p>We built the pipeline on Temporal. This is what that looked like and what we'd tell anyone considering it.</p>
<h2>Why a workflow engine and not a job queue</h2>
<p>An order is not one job. It's a dozen steps, some of which take minutes (transcoding), some of which talk to systems we don't control (FTP servers, Aspera, Signiant, a client's inbox), and one of which can wait days (a client re-uploading a broken file). With a plain queue you end up writing your own state machine, retry rules and recovery code. Temporal gives you that as the programming model: each step's result is saved, failed steps retry by policy, and a crashed worker or a deploy doesn't lose the order.</p>
<p>Our rule of thumb: if a job has several steps, calls outside systems, can run for minutes or days, and must never run twice or be lost, use durable execution. For short background tasks a queue is simpler.</p>
<h2>One parent workflow per order</h2>
<p>Each order runs as one orchestrating workflow that reads top to bottom like the process the operations team already knew:</p>
<ul>
<li>Validate the media</li>
<li>Make a preview / proxy and back up the original</li>
<li>Look up each destination station's format and delivery method</li>
<li>Transcode once per distinct format</li>
<li>Generate the station documents (PDF, XML, BXF)</li>
<li>Deliver to every station in parallel</li>
<li>Notify the client and mark the order complete</li>
</ul>
<p>Keeping the parent readable mattered more than we expected. When someone asks "what happens to an order?", the answer is that one function.</p>
<h2>Child workflows per station, delivered in parallel</h2>
<p>Delivery is where most of the variety lives, so each station gets its own child workflow with its own method: Signiant, Aspera, FTP, S3 or Google Drive. Children run in parallel, retry on their own, and a slow or failing station doesn't hold up the rest. The parent waits for all of them and records each result, so the operations dashboard can show exactly which station got what and when.</p>
<h2>Transcode once per format, not once per station</h2>
<p>Twenty stations rarely need twenty formats. Before transcoding, we group stations by required format and run each conversion once, load-balanced across the client's Vantage transcode servers, with FFmpeg as a fallback. On large orders that removes most of the duplicate transcode work.</p>
<h2>Humans in the loop without polling</h2>
<p>If a file fails validation, the workflow emails the client and waits on a signal: re-upload or cancel. No cron job checks a status column; the workflow is simply paused, cheaply, until the signal arrives, then carries on from where it stopped.</p>
<h2>Separate task queues so slow work scales on its own</h2>
<p>We split workers by kind of work, each on its own Temporal task queue: media, transcode, documents, notifications, distribution and the orchestrator. Transcode workers need CPU and scale up during busy periods; notification workers barely register. On Kubernetes each pool scales horizontally on its own, and a backlog in one never starves the others.</p>
<h2>Add automation around the old system, don't rewrite it</h2>
<p>The client already had C# services that worked. Instead of replacing them, the workflows talk to them over RabbitMQ. That let automation go live step by step, with the existing system still the source of truth where it already was.</p>
<h2>What we'd tell a team starting out</h2>
<ul>
<li>Write the process down first: every step, retry rule, timeout and human decision. The workflow code follows from it.</li>
<li>Keep activities small and idempotent; that's what makes automatic retries safe.</li>
<li>Use child workflows where the work fans out and each branch can fail differently.</li>
<li>Give every kind of work its own task queue from day one.</li>
<li>Build the status view early. Durable execution is only reassuring if people can see it.</li>
</ul>
<p>Rishabh Maurya led SpotBeam. If you're planning something similar, the full case study is linked below, or email <a href="mailto:hello@buildkodiq.com">hello@buildkodiq.com</a>.</p>
<h2>Related projects</h2>
<ul>
<li><a href="https://buildkodiq.com/work/spotbeam">SpotBeam: ad order automation &amp; distribution</a></li>
<li><a href="https://buildkodiq.com/work/durable-workflow-engine">Durable Workflow Engine</a></li>
</ul>
<hr />
<p><em>Originally published on <a href="https://buildkodiq.com/blog/temporal-in-production-order-workflows">buildkodiq.com</a>. BuildKodiq is a two-engineer studio building AI agents, automation, dashboards, MVPs and websites. Questions: <a href="mailto:hello@buildkodiq.com">hello@buildkodiq.com</a>.</em></p>
]]></content:encoded></item><item><title><![CDATA[Building a real-time dashboard on Next.js and WebSockets: what breaks and how we handle it]]></title><description><![CDATA[Real-time dashboards on Next.js and WebSockets: event contracts, safe reconnects, one store, batched renders and testing at peak load.]]></description><link>https://buildkodiq.hashnode.dev/building-a-real-time-dashboard-on-next-js-and-websockets-what-breaks-and-how-we-handle-it</link><guid isPermaLink="true">https://buildkodiq.hashnode.dev/building-a-real-time-dashboard-on-next-js-and-websockets-what-breaks-and-how-we-handle-it</guid><category><![CDATA[Next.js]]></category><category><![CDATA[React]]></category><category><![CDATA[websockets]]></category><category><![CDATA[Python]]></category><dc:creator><![CDATA[Shubham Maurya]]></dc:creator><pubDate>Fri, 27 Nov 2026 13:17:20 GMT</pubDate><content:encoded><![CDATA[<p>We've built both halves of live dashboards: Go and FastAPI services that stream events over WebSockets to many clients at once, and Next.js and React dashboards. These are the problems worth planning for.</p>
<h2>1. Agree the event contract before building screens</h2>
<p>Most real-time bugs are contract bugs: a field that's sometimes missing, a number that's a string, events that arrive out of order, a message type nobody told the frontend about. Before writing UI we pin down every message the backend sends: its type, shape, units, expected rate and ordering guarantees, plus what a snapshot on connect looks like. We keep it as types shared by both sides and validate incoming messages at the edge, so a bad message is logged and dropped instead of breaking a screen.</p>
<h2>2. Reconnect like the network will fail, because it will</h2>
<p>Laptops sleep, phones switch networks, servers deploy. The client needs:</p>
<ul>
<li>Reconnect with exponential backoff and jitter, so a server restart doesn't get hit by every client at once</li>
<li>Resubscribe to exactly what the user was watching</li>
<li>Ask for a fresh snapshot after reconnecting, rather than trusting whatever was on screen</li>
<li>A visible connection state. A dashboard that silently shows stale data as live is worse than one that says "reconnecting"</li>
</ul>
<h2>3. One store, not state scattered across components</h2>
<p>Socket messages go into one normalised store keyed by id, outside React's render cycle. Components subscribe to the slice they need. That's what makes "this row changed" cheap, makes reconnect snapshots easy to apply, and stops two components from disagreeing about the same value.</p>
<h2>4. Batch renders; don't re-render per message</h2>
<p>At a few updates a second anything works. At hundreds, calling setState per message freezes the page. Buffer incoming messages and apply them once per animation frame. Virtualise long tables so only visible rows render, and throttle charts to what the eye can follow. The data is still exact; only the painting is batched.</p>
<h2>5. Keep history and filters on REST</h2>
<p>The socket is for what's happening now. History, search, filters, muting and exports go through normal REST endpoints with pagination. Mixing the two ("send me the last 10,000 events over the socket") is how connections get slow for everyone.</p>
<h2>6. Put money and permissions on the server</h2>
<p>If the dashboard is paid (for example with subscriptions), the server decides what a user may see, ideally when the WebSocket connection is opened. Verify webhooks and process them idempotently, so a retried event is never applied twice.</p>
<h2>7. Test at peak, not at demo rates</h2>
<p>Record a busy period from the real feed or simulate one, replay it at two or three times the expected rate, and watch frame times and memory for an hour. Most real-time problems (leaks, growing arrays, slow re-renders) only show up under sustained load.</p>
<hr />
<p>A small working version is open source: <a href="https://github.com/Shubham996633/realtime-dashboard-starter">https://github.com/Shubham996633/realtime-dashboard-starter</a></p>
<p>Shubham Maurya leads our real-time frontend work. More of our work: <a href="https://buildkodiq.com/work">https://buildkodiq.com/work</a></p>
<p><em>Originally published at</em> <a href="https://buildkodiq.com/blog/real-time-dashboard-nextjs-websockets"><em>buildkodiq.com</em></a><em>.</em></p>
<p><em>Drafted with AI assistance and reviewed by Shubham.</em></p>
]]></content:encoded></item></channel></rss>