惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园_首页
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
ThreatConnect
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
H
Help Net Security
T
Threat Research - Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
A
Arctic Wolf
G
Google Developers Blog
量子位
U
Unit 42
I
InfoQ
V
V2EX
F
Fox-IT International blog
P
Privacy & Cybersecurity Law Blog
V
Visual Studio Blog
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
C
CERT Recently Published Vulnerability Notes
博客园 - 三生石上(FineUI控件)
T
The Exploit Database - CXSecurity.com
T
Tailwind CSS Blog
SecWiki News
SecWiki News
Know Your Adversary
Know Your Adversary
MyScale Blog
MyScale Blog
宝玉的分享
宝玉的分享
The Hacker News
The Hacker News
Project Zero
Project Zero
Application and Cybersecurity Blog
Application and Cybersecurity Blog
月光博客
月光博客
Recent Commits to openclaw:main
Recent Commits to openclaw:main
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
GRAHAM CLULEY
C
Cisco Blogs
I
Intezer
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
Recorded Future
Recorded Future
T
Tenable Blog
W
WeLiveSecurity
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
T
The Blog of Author Tim Ferriss
www.infosecurity-magazine.com
www.infosecurity-magazine.com
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
PCI Perspectives
PCI Perspectives

Hacker News: Front Page

Google Hates You About LLMs at Zig Days Anthropic raises $65B in Series H funding at $965B post-money valuation Daily links from Cory Doctorow Legislation Killed Would Have Effectively Blocked Police LPR, Including Flock Introducing dynamic workflows in Claude Code Introducing Claude Opus 4.8 Trivial Pursuits Zendesk forced a customer from 2016 to pay 4X more, they rebuilt it in 48 hours The Permanent Upper Crow Show HN: Ktx – Open-source executable context layer for data agents New York passes Mamdani's pied-a-terre tax. Here's who pays and how much Valve cites component costs as Steam Deck prices up more than 40% How long until AI automates all cognitive labor? EU fines Temu €200m for allowing sale of illegal products University of California math professors demand return of SAT for STEM admissions - Los Angeles Times Show HN: Continue? Y/N: A 60-second game about AI agent permission fatigue Beyond Benchmarks: Disagreement Among Frontier LLMs on Real-World Fact-Checks Commission fines Temu €200M for breaching the Digital Services Act AMD pulls a bait-and-switch on Linux users with Vivado licensing changes AI sticker shock hits corporate America The Problem with the Ferrari Luce EV Offers a Lesson for Every Leader Indian Institute of Science Hallucinate – Massively Multiplayer Online Rave GitHub - BurntSushi/bttf: A command line tool for datetime arithmetic, parsing, formatting and more. GitHub - BurntSushi/biff: A command line tool for datetime arithmetic, parsing, formatting and more. Founding GTM Engineer at RamAIn | Y Combinator "US has the troops in place to attack Cuba" per Politico Google employee charged with $1M Polymarket insider trading bet on search term Can we have the day off? GitHub - creusot-rs/creusot: Creusot helps you prove your Rust code is correct. U.S. Is Said to Open Criminal Inquiry of E. Jean Carroll Over Accusations Against Trump You should not update your dependencies in 2026 Am I a Bad Friend? Machine Learning Engineer at Pelica | Y Combinator Internet Traffic in Iran Increasing F.B.I. Arrests C.I.A. Official With $40 Million in Gold Bars in His Home iPhones Running iOS 26 Are Freezing FaceTime Calls When They Detect Nudity Warm Up Your MacBook Show HN: Open-Source AI Racing Harness Improving AI labels for viewers and creators I had Codex iterate on its own AGENTS.md 8 times and measured each version against real PRs. The best one still regressed on a clean holdout. I'm Getting Into Mesh Networks... (Meshtastic, MeshCore, and Reticulum) Rust (and Slint) on a jailbroken Kindle. GitHub - fbcouto/deterministic-wave-engine: A hydrodynamic computational model resolving wave-particle duality. 2earth.github.io What Apple and Google are doing to your push notifications Germany Considers Law to Force Social Media Algorithm Boost for State-Approved News FuzzingBrain V2: A Multi-Agent LLM System for Automated Vulnerability Discovery and Reproduction Thranpages :: How Did I Do :: SimCity 3k in 4k Valve raises Steam Deck prices by more than $200 Objective metrics that change the most as we age Gemini, Gophers, and Fingers. Oh My! Alternative Internets Beyond HTTPS Jobs at Reflex | Y Combinator I think Anthropic and OpenAI have found product-market fit DuckDuckGo's AI-free search saw nearly 28% more visits in the week following Google's insistence that people… Stress disrupts hippocampal integration of overlapping events, memory inference Training our own AI models - PostHog Canada to order military plane fleet from Sweden in shift from US suppliers Last.fm is now independent An Update on Composer & Packagist Supply Chain Security Corporations Can Vote in Some Delaware Elections, Judge Says (1) How the ZX80 works GitHub - bingud/filemat: Web-based file manager Declassified CIA Cartography Maps from the 1980s Show HN: I made an emergency page for my family. You should too The VibeSec Reckoning Evolving Webflow for the Agentic Web Italy region: +200% tax on datacenters built in green/agricultural areas Agents Cannot Maintain Systems: The Additive–Transformative Gap in LLM Software Delivery YouTube to Automatically Label AI-Generated Videos & Enhance Labels Tech CEOs are apparently suffering from AI psychosis Incident with Pull Requests, Issues, Git Operations and API Requests GitHub - WilliamSmithEdward/xlide_vscode: Excel VBA integration for VS Code - Tree View / Full Direct VBA Read+Write / LiveShare Compatible / Direct Agentic AI Integrations How Private Equity Bought America’s Essential Services Atomically precise mechanosynthesis of carbon structures on hydrogenated Si(100) by inverted-mode STM I’m tired of talking to AI Mini Micro Go: Support for Generic Methods Thornton Wilder’s Last Play Vanished Into Thin Air. Or Did It? Unicode 18.0.0 Beyond the Prompt: Claude Code GitHub - craigmccaskill/posthorn: Self-hosted email gateway between your apps and a transactional mail provider (Postmark, Resend, Mailgun, AWS SES, or outbound-SMTP). Three ingress shapes (HTTP form, HTTP API, SMTP). One Docker container, one TOML config. The just-say-no engineer was a ZIRP phenomenon Gear Commit TSDuck – The MPEG Transport Stream Toolkit So, Where Does Next-Token Prediction Leave Us? Stripe is friendly to “friendly fraud” Erin Brockovich made a map to track data centers around the country agent memory: an anatomy How Wikipedia Whitewashes Mao Your AI Tools Are Only as Good as Your Judgment — And That's the Point The OSS Sabotage Manual Became Corporate Best Practice Overview · Cloudflare Flagship docs Xiaomi MiMo Api Open Platform - Token Plan Global Launch Colorado and California Exempt Open Source from Age Attestation From Rust to Ruby Why is the Left No Fun? phloto for my photo flow Big Tech's Anti-Labor Playbook Has Come for Wikipedia
Postgres-backed Durable Workflow Execution | DBOS
KraftyOne · 2026-05-29 · via Hacker News: Front Page

Durable workflows are a simple but powerful tool for building reliable programs. The idea is that as your program runs, you regularly checkpoint its progress to a database. That way, if your program ever crashes or fails, you can reload from the last checkpoint to recover it from its last completed step. You can think of this like saving in a video game: you regularly “save” your program’s progress so that if it crashes, you can “reload” it from its last checkpoint.

Most commonly, durable workflows are implemented via external orchestration. This is the pattern used by systems like Temporal, Airflow, and AWS Step Functions. In this model, durable programs are written as workflows of steps whose execution is coordinated by a central orchestrator.

When a client submits a workflow, the orchestrator creates a record for it in a data store then dispatches it to a worker for execution. Each time a worker completes a step, it sends the step’s outcome back to the orchestrator. The orchestrator checkpoints the output in its data store, then dispatches the next step. If a worker crashes or fails, the orchestrator dispatches its workflows to another worker, starting them from their last checkpointed step.

External workflow orchestration system architecture diagram

In this blog post, we’ll argue that external orchestration is fundamentally overcomplicated. The core idea of durable workflows is to checkpoint program state in a database. But if durable workflows are about databases, then there’s no reason to have a separate orchestrator server. Instead, it’s simpler and more efficient to use the database itself as an orchestrator. To make this more concrete, we’ll focus specifically on building durable workflows on Postgres, because its popularity, scalability, and rich ecosystem make it an ideal choice.

In a Postgres-backed durable workflows system, application servers directly communicate with Postgres to execute workflows instead of going through a central orchestrator. A client submits a workflow for execution by creating an entry for it in a Postgres workflows table. Application servers poll the table for workflows to dequeue and execute. As a server executes a workflow, it checkpoints the output of each step to Postgres. If a server executing workflows crashes or fails, another server can recover its workflows from their checkpoints.

Postgres-backed durable execution system architecture diagram

This design renders a central orchestrator unnecessary because application servers can coordinate through Postgres. Instead of relying on a central orchestrator to dispatch workflows to workers, servers cooperatively dequeue workflows from a Postgres table, using mechanisms such as locking clauses to ensure each workflow is dequeued by exactly one worker. Instead of relying on an orchestrator to checkpoint step outputs, workers checkpoint steps to Postgres themselves. If multiple workers try to execute the same workflow simultaneously, Postgres database integrity constraints let them detect the duplicate work on checkpoint and back off.

Replacing a central orchestrator with Postgres (or another database) makes durable workflows fundamentally simpler. In particular, it means hard problems such as scalability, availability, observability, and security can be addressed using well-understood Postgres-native solutions.

Scalability and Availability

The scalability and availability of a database-backed durable workflows system are fundamentally determined by the underlying database. The system can scale horizontally by adding more worker servers, so its maximum capacity is determined by how quickly the database can process workflows. Similarly, workers are fungible and can freely recover each other’s state, so the system is available as long as the underlying database is available.

When using Postgres specifically, this is beneficial because Postgres scalability and availability are well-studied problems with robust solutions. For scalability, a single Postgres server can vertically scale to handle tens of thousands of workflows per second, and further scaling can be achieved by using distributed (e.g., CockroachDB) or sharded Postgres. For availability, Postgres supports streaming replication with automatic failover and managed offerings provide multi-AZ deployments with high-availability SLAs out of the box. As a result, the decades of engineering work and research that have gone into operating Postgres at scale can translate directly to operating durable workflows.

Observability

When using Postgres-backed durable execution, workflows and their steps are checkpointed to Postgres tables. This means observability is built-in: you can scan those checkpoints to monitor workflows in real time and visualize workflow execution. 

Postgres excels at this because virtually any workflow observability query can be expressed in SQL. For example, here’s a query to find all workflows that errored in the last month:

SQL Query to analyze durable workflow execution observability data

A query like this might seem obvious, but it’s hard to overstate how powerful this is. It’s only possible because Postgres’s relational model lets you express complex filtering and analytical operations declaratively in SQL, leveraging decades of query optimization research. Many systems with simpler data models, such as the key-value stores used by popular external orchestrators, have no such support. By storing workflow and step data in Postgres tables and augmenting them with secondary indexes for fast analytical queries, you get efficient observability from your durable execution “for free.”

Reliability and Security

When using an external orchestrator for durable execution, both the orchestrator and its data store are single points of failure. Because they directly coordinate workflow execution, if either has downtime, the entire application becomes unavailable. Moreover, because they process and store workflow and step checkpoints, they likely have access to sensitive application data, meaning they must be hardened, access-controlled, and audited like any other piece of sensitive infrastructure. 

By contrast, the only point of failure in Postgres-backed durable execution is Postgres itself, and all workflow data is stored directly in Postgres and never transits any other system. If an application already depends on Postgres, adopting durable execution does not add any new points of failure to the system nor introduce new surface area to secure. Databases are already critical infrastructure, so it makes more sense to reuse them for orchestration than to add new critical infrastructure for it.

Learn More

If you like building scalable, reliable systems, we’d love to hear from you. At DBOS, our goal is to make Postgres-backed durable execution as simple and performant as possible. Check it out: