<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/running-chained-llms-with-typescript-in-production-aa1nuz5ze" -->

---
title: Running chained LLMs with TypeScript in production
description: Chaining multiple LLM calls in production introduces reliability, latency, cost, state management, and observability challenges beyond what a single prompt...
canonical: https://daily.dev/posts/running-chained-llms-with-typescript-in-production-aa1nuz5ze
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Running chained LLMs with TypeScript in production | daily.dev
og:description: Chaining multiple LLM calls in production introduces reliability, latency, cost, state management, and observability challenges beyond what a single prompt...
og:url: https://daily.dev/posts/running-chained-llms-with-typescript-in-production-aa1nuz5ze
og:image: https://api.daily.dev/og/posts/AA1nUz5ZE.png
og:image:alt: Running chained LLMs with TypeScript in production
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Running chained LLMs with TypeScript in production

**[Inngest Blog](https://daily.dev/sources/inngest)** · 6 min read · 0 upvotes · 0 comments

## Summary

Chaining multiple LLM calls in production introduces reliability, latency, cost, state management, and observability challenges beyond what a single prompt call requires. Inngest's TypeScript SDK addresses this by providing durable functions with automatic state persistence between steps, built-in retries, optional parallelism, cancellation, and concurrency management, letting developers focus on prompt logic rather than infrastructure. A code example shows a function that summarizes input, generates a title, and saves results to a database, deployable to Vercel, Netlify, Cloudflare, or similar platforms. Planned future features include a higher-level chaining library, a Langchain integration, and function state streaming to browsers.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/blog/running-chained-llms-typescript-in-production>

## Questions this post answers

### How can I chain multiple LLM calls in TypeScript without building my own state and retry infrastructure?

Inngest's TypeScript SDK provides step.run functions that automatically persist output between steps, retry on failure, and can run in parallel, so a chain like summarize input, generate title, then save to database is written as plain async TypeScript without managing queues or external state stores. Functions are served over HTTP and can be deployed to Vercel, Netlify, Cloudflare, Fly.io, or Railway.

_daily.dev surfaces practical approaches like this for developers wiring up multi-step LLM pipelines in production._

### What problems come up when chaining LLM calls together in a production backend?

Chaining amplifies existing LLM issues: reliability gets harder, latency and costs increase, state and context storage across the chain becomes complex to manage, cancelling in-flight chains to control cost is difficult, and observing or introspecting chain state is hard. These compound the usual challenges of availability, reliability, and maintenance when scaling to many users.

_Developers weighing how to scale LLM pipelines reliably can find this kind of production experience on daily.dev._

## Similar posts on daily.dev

- [LangChain.js for Beginners: A Free Course to Build Agentic AI Apps with JavaScript](https://daily.dev/posts/langchain-js-for-beginners-a-free-course-to-build-agentic-ai-apps-with-javascript-wjyvzfnlb) · DevBlogs · 0 upvotes · 0 comments
- [LangChain is great for prototypes. Here’s why I didn’t use it in production.](https://daily.dev/posts/langchain-is-great-for-prototypes-here-s-why-i-didn-t-use-it-in-production--gu8et3dhm) · Medium · 2 upvotes · 0 comments
- [7 Things That Break LLM Apps in Production](https://daily.dev/posts/7-things-that-break-llm-apps-in-production-kyzofungo) · The T-Shaped Dev · 3 upvotes · 0 comments
- [From LLMs to LangChain: Understanding How Modern AI Applications Actually Work](https://daily.dev/posts/from-llms-to-langchain-understanding-how-modern-ai-applications-actually-work-v87nexrya) · freeCodeCamp · 4 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#inngest](https://daily.dev/tags/inngest), [#serverless](https://daily.dev/tags/serverless), [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/running-chained-llms-with-typescript-in-production-aa1nuz5ze)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Running chained LLMs with TypeScript in production","url":"https://daily.dev/posts/running-chained-llms-with-typescript-in-production-aa1nuz5ze","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/running-chained-llms-with-typescript-in-production-aa1nuz5ze"},"datePublished":"2026-09-13T19:57:40.002Z","dateModified":"2026-10-15T02:22:44.105Z","description":"Chaining multiple LLM calls in production introduces reliability, latency, cost, state management, and observability challenges beyond what a single prompt...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ac84c15e39c7c253230dbbaa9f396e7a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ac84c15e39c7c253230dbbaa9f396e7a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Inngest Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inngest Blog","logo":"https://media.daily.dev/image/upload/s--ieZKUa5y--/c_limit,w_256/f_auto,q_auto/v1789329423/logos/inngest?_a=BAMAMicg0","url":"https://daily.dev/sources/inngest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/running-chained-llms-with-typescript-in-production-aa1nuz5ze","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,inngest,serverless,typescript","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inngest Blog","item":"https://daily.dev/sources/inngest"},{"@type":"ListItem","position":3,"name":"Running chained LLMs with TypeScript in production"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/running-chained-llms-with-typescript-in-production-aa1nuz5ze#faq","mainEntity":[{"@type":"Question","name":"How can I chain multiple LLM calls in TypeScript without building my own state and retry infrastructure?","acceptedAnswer":{"@type":"Answer","text":"Inngest's TypeScript SDK provides step.run functions that automatically persist output between steps, retry on failure, and can run in parallel, so a chain like summarize input, generate title, then save to database is written as plain async TypeScript without managing queues or external state stores. Functions are served over HTTP and can be deployed to Vercel, Netlify, Cloudflare, Fly.io, or Railway. daily.dev surfaces practical approaches like this for developers wiring up multi-step LLM pipelines in production."}},{"@type":"Question","name":"What problems come up when chaining LLM calls together in a production backend?","acceptedAnswer":{"@type":"Answer","text":"Chaining amplifies existing LLM issues: reliability gets harder, latency and costs increase, state and context storage across the chain becomes complex to manage, cancelling in-flight chains to control cost is difficult, and observing or introspecting chain state is hard. These compound the usual challenges of availability, reliability, and maintenance when scaling to many users. Developers weighing how to scale LLM pipelines reliably can find this kind of production experience on daily.dev."}}]}
```

