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

推荐订阅源

C
Check Point Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
腾讯CDC
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
Vercel News
Vercel News
P
Proofpoint News Feed
雷峰网
雷峰网
博客园_首页
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
爱范儿
爱范儿
V
V2EX
F
Fortinet All Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
MyScale Blog
MyScale Blog
S
SegmentFault 最新的问题

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
What Developers Underestimate About Long-Running Workflows
Dhruvi · 2026-06-24 · via DEV Community

Dhruvi

Long-running workflows look simple when you first build them.

Something happens.

A few systems exchange data.

Everything completes.

Done.

At least that's the expectation.

Reality is very different.

The biggest thing I underestimated was time.

Not execution time.

Elapsed time.

Because once workflows start running for hours, days, or continuously, strange things start happening.

  • APIs become temporarily unavailable
  • Data changes halfway through the process
  • Retries arrive much later than expected
  • Someone manually updates a record
  • Another system processes things in a different order

Nothing is broken.

But everything is slightly different from when the workflow started.

Early on, I assumed workflows were transactions.

Start.

Execute.

Finish.

Now I think of them as conversations between systems.

And conversations can get interrupted.

Another thing I underestimated:

State changes.

You might start processing an order that is "pending".

Ten minutes later, another system marks it as "cancelled".

An hour later, a retry comes in from an earlier step.

If your workflow only thinks about data, weird things happen.

Because the world has changed while the process was still running.

Long-running workflows also expose assumptions you didn't know you made.

Like:

  • this API will always respond quickly
  • data will arrive in order
  • users won't modify records manually
  • retries will happen immediately

Those assumptions survive in testing.

Production removes them quickly.

One thing that changed how I build these systems:

I stopped asking:

"Will this workflow finish?"

And started asking:

"What state will the world be in when it finishes?"

Because those are two very different questions.

Most problems in long-running systems aren't caused by one big failure.

They're caused by lots of small changes happening while the workflow is still alive.

And if you don't account for that, eventually the workflow finishes successfully and still produces the wrong outcome.

This is something we think about constantly at BrainPack while operating workflows that span multiple systems and AI layers. Long-running processes are less about moving data and more about managing changing state over time.