frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Durable Endpoints – make any API endpoint unbreakable

https://www.inngest.com/docs/learn/durable-endpoints
6•tonyhb•1h ago
Hi HN! I'm Tony, one of the co-founders of Inngest (https://inngest.com/).

Wanted to show you something we've been working on: Durable Endpoints. It brings durability and steps directly into your APIs. Each step persists the state in the background. The happy path means no additional latency for your users, and you get tracing & metrics out of the box, and failures resume from the last successful step checkpoint rather than restarting from scratch.

The problem we kept hitting: durable execution systems (Temporal, our own workflows, etc.) are designed for async background work. But with AI workloads, you often need durability and low latency in a synchronous request: a user is waiting on a chat response that involves multiple LLM calls, any of which can fail or timeout.

The typical solution is splitting into two systems: a streaming frontend for responsiveness, plus a background job system for reliability. Durable Endpoints let you keep it as one cohesive implementation (here's a Next example):

    import { Inngest } from "inngest";
    import { endpointAdapter } from "inngest/next";
    
    const inngest = new Inngest({ id: "my-app", endpointAdapter });
    
    export const handler = inngest.endpoint(async (req: Request) => {
      const { input } = parseParams(req);
    
      // Each step.run() checkpoints on completion
      const processed = await step.run("process-input", async () => {
        return await expensiveOperation(input);
      });
    
      // If this fails, we resume here — not from the beginning
      const result = await step.run("generate-output", async () => {
        return await anotherExpensiveOperation(processed);
      });
    
      return Response.json({ result });
    });

How it works under the hood:

- Steps are identified by their string ID, not execution order. This makes the system tolerant to code changes... you can refactor, add/remove steps, and existing in-flight executions continue correctly.

- We use checkpointing (https://www.inngest.com/blog/introducing-checkpointing) to async checkpoint steps. State is persisted to our execution store rather than held in memory.

- If endpoints turn async (step errors or waitForEvent), we redirect the user to a new URL which uses keepalives and waits for the API result. Inngest re-enters the endpoint and picks up where it left off, then sends the result to the redirected user.

- Similarly, on failure, our executor re-invokes the endpoint. Completed steps are memoized from the checkpoint... their functions don't re-run, we just return the stored result.

- Works with streaming responses via ReadableStream.

The same step primitives we use in durable workflows (`step.run`, `step.sleep`, `step.waitForEvent`) work here, so you get retries, timeouts, and human-in-the-loop patterns in synchronous handlers.

Beyond AI, this is useful anywhere failure mid-request is expensive: payment flows, webhook processing, third-party API orchestration.

It's in public beta. Docs: https://www.inngest.com/docs/learn/durable-endpoints. Code is in our TypeScript SDK.

Happy to dig into the execution model, how we handle determinism, or the checkpointing implementation.

The end to a 7.5-year career

https://andreaowu.medium.com/the-end-to-a-7-5-year-career-d94d8e3f3151
1•AnthOlei•1m ago•0 comments

RocksDB development finds a CPU bug

https://rocksdb.org/blog/2026/02/17/cpu-bug.html
1•tanelpoder•1m ago•0 comments

Show HN: Spring CRUD Generator v1.2.0 – Flyway portability and Docker checks

https://github.com/mzivkovicdev/spring-crud-generator/releases/tag/v1.2.0
1•mzivkovicdev•2m ago•0 comments

Scientists thought they understood global warming. They did not

https://old.reddit.com/r/environment/comments/1r5bvlr/scientists_thought_they_understood_global_w...
1•doener•2m ago•0 comments

Show HN: MakeGradient – Free WebGL gradient engine,exports to Code/Figma/video++

https://www.makegradient.com/
1•uxdonkey•3m ago•0 comments

The Complete OpenClaw Guide

https://complete-open-claw-guide.vercel.app/
2•M0HD197•4m ago•0 comments

Show HN: Claude-Stream-Compactor

https://github.com/enigma/claude-streaming-compactor
2•ndr•5m ago•0 comments

Do not give away Diego Garcia, Trump tells UK

https://www.bbc.com/news/articles/c309qqyer8yo
1•tartoran•5m ago•0 comments

Non-Contributory Keys in the Matrix

https://blog.erinshepherd.net/2026/02/non-contributory-keys-in-the-matrix/
1•todsacerdoti•5m ago•0 comments

The next era of AI is not LLMs, it's Energy-Based Models EBMs

https://codedynasty.dev/posts/EBMs
2•66yatman•8m ago•0 comments

A Case Against 6 Democrats Lacked Urgency. Then Came a Swift Bid for Indictment

https://www.nytimes.com/2026/02/18/us/politics/pirro-inquiry-video-democratic-lawmakers.html
1•duxup•11m ago•1 comments

Show HN: MineDemo, a Minecraft-style demo recorder b/C I'm tired of boring demos

https://minedemo.mygictools.com/
1•arazh2020•11m ago•0 comments

Show HN: Strava for Claude Code

https://straude.com/
2•ohong•11m ago•0 comments

Ask HN: Why is it impossible to increase iPhone rings before vmail forward?

1•mergy•13m ago•1 comments

The Problem with AI Agents Isn't Identity, It's Authorization

https://fusionauth.io/blog/ai-authorization
2•mooreds•14m ago•0 comments

Botreef – An open-source autonomous coding server

https://github.com/johndo31/botreef
1•jnsiko•16m ago•1 comments

An Intuitive Introduction to PPO and GRPO

https://mesuvash.github.io/blog/2026/ppo-grpo/
2•mesuvash•17m ago•0 comments

What tech stack Claude Code defaults to when building apps

https://amplifying.ai/research/claude-code-picks
3•edwin•17m ago•1 comments

Spreadsheet Arena

https://www.meridian.ai/blog/all/spreadsheet-arena
1•gmays•17m ago•0 comments

Wired for power: The geopolitics of subsea cables in the South China Sea

https://www.rnz.co.nz/news/world/587219/wired-for-power-the-geopolitics-of-subsea-cables-in-the-s...
3•billybuckwheat•20m ago•0 comments

The Future of Media Is Pre-Deplatformed

https://www.garbageday.email/p/the-only-taboo-left-is-copyright-infringement
1•laurex•21m ago•0 comments

Show HN: I analyzed 227M Medicaid billing records to flag potential fraud

https://www.openmedicaid.org/
1•kianoconnor•21m ago•0 comments

Show HN: AgentForge – Multi-LLM Orchestrator in 15KB of Python

https://github.com/ChunkyTortoise/ai-orchestrator
1•chunktort•21m ago•0 comments

CMind: An AI Agent for Localizing C Memory Bugs

https://arxiv.org/abs/2601.14434
1•PaulHoule•22m ago•0 comments

Making Nintendo DS ROMs with Rust

https://matthewtejo.substack.com/p/making-nintendo-ds-roms-with-rust
6•mtejo•23m ago•0 comments

Canada's Request for AI Startups

https://zeitgeistml.substack.com/p/canadas-request-for-startups
1•eh_tk•23m ago•1 comments

8 Skiers dead after avalanche near Lake Tahoe

https://www.nbcnews.com/news/us-news/9-skiers-dead-avalanche-lake-tahoe-california-rcna259576
6•almosthere•23m ago•0 comments

Tariffs strike again: Companies warn of price increases in 2026

https://www.cnn.com/2026/02/17/business/video/berman-egan-tarrifs-price-hikes-cnc
4•kiriberty•23m ago•0 comments

Proud of This 3D Hot Dog That My AI Made

https://local001.com/
4•sampleSal•24m ago•2 comments

OpenSpatial – An OSS SpatialChat Alternative

https://github.com/srid/openspatial
1•srid•24m ago•0 comments