<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/road-to-replay-safely-upgrading-payment-workflows-at-scale-with-block-simywtkdz" -->

---
title: Road to Replay: Safely Upgrading Payment Workflows at...
description: A Block (Square) engineer shares how they safely upgrade long-running payment processing workflows built on Temporal at scale (15M+ workflows/day). The talk...
canonical: https://daily.dev/posts/road-to-replay-safely-upgrading-payment-workflows-at-scale-with-block-simywtkdz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Road to Replay: Safely Upgrading Payment Workflows at Scale with Block | daily.dev
og:description: A Block (Square) engineer shares how they safely upgrade long-running payment processing workflows built on Temporal at scale (15M+ workflows/day). The talk...
og:url: https://daily.dev/posts/road-to-replay-safely-upgrading-payment-workflows-at-scale-with-block-simywtkdz
og:image: https://api.daily.dev/og/posts/SimYwTKdZ.png
og:image:alt: Road to Replay: Safely Upgrading Payment Workflows at Scale with Block
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.

# Road to Replay: Safely Upgrading Payment Workflows at Scale with Block

**[Temporal](https://daily.dev/sources/temporal)** · 60 min read · 0 upvotes · 0 comments

## Summary

A Block (Square) engineer shares how they safely upgrade long-running payment processing workflows built on Temporal at scale (15M+ workflows/day). The talk covers three versioning strategies: worker versioning, patching, and their custom 'versioning by dispatch' approach. The dispatch pattern uses a single deployed app with a dispatcher class that routes workflows to the correct versioned implementation based on a LaunchDarkly feature flag stored in workflow input. To upgrade long-running workflows stuck in unbounded waits, they use Temporal's 'continue as new' feature triggered via a batch signal operation, migrating ~900K workflows at ~50/sec. Key lessons include always forking a new version when touching workflow code, using protobuf objects for forward/backward-compatible inputs, the 'fork behind' git pattern to preserve history, and always calling 'every handler finished' before continue-as-new.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=u7Vs8h0t674>

## Similar posts on daily.dev

- [Announcing GA for Worker Versioning and Public Preview for Upgrade on Continue-as-New](https://daily.dev/posts/announcing-ga-for-worker-versioning-and-public-preview-for-upgrade-on-continue-as-new-mdyc8ebiw) · Temporal · 0 upvotes · 0 comments
- [Temporal hits 3,000 paying customers with its crash-proof workflow engine](https://daily.dev/posts/temporal-hits-3-000-paying-customers-with-its-crash-proof-workflow-engine-0pq440ota) · The New Stack · 1 upvotes · 0 comments
- [All your workflows are about to be long running. Build for it.](https://daily.dev/posts/all-your-workflows-are-about-to-be-long-running-build-for-it--ff8epi154) · Inngest Blog · 0 upvotes · 0 comments
- [A new programming model for durable execution](https://daily.dev/posts/a-new-programming-model-for-durable-execution-8hk6zrkca) · Vercel · 0 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#fintech](https://daily.dev/tags/fintech)

[View this post on daily.dev](https://daily.dev/posts/road-to-replay-safely-upgrading-payment-workflows-at-scale-with-block-simywtkdz)

```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":"Road to Replay: Safely Upgrading Payment Workflows at Scale with Block","url":"https://daily.dev/posts/road-to-replay-safely-upgrading-payment-workflows-at-scale-with-block-simywtkdz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/road-to-replay-safely-upgrading-payment-workflows-at-scale-with-block-simywtkdz"},"datePublished":"2026-04-10T17:49:57.703Z","dateModified":"2026-04-10T19:37:12.020Z","description":"A Block (Square) engineer shares how they safely upgrade long-running payment processing workflows built on Temporal at scale (15M+ workflows/day). The talk...","image":"https://i.ytimg.com/vi/u7Vs8h0t674/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/u7Vs8h0t674/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Temporal","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":"Temporal","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/65290ca7e3ab46a7b1df76f2757800c2","url":"https://daily.dev/sources/temporal"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/road-to-replay-safely-upgrading-payment-workflows-at-scale-with-block-simywtkdz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,fintech","timeRequired":"PT60M","video":{"@type":"VideoObject","name":"Road to Replay: Safely Upgrading Payment Workflows at Scale with Block","description":"A Block (Square) engineer shares how they safely upgrade long-running payment processing workflows built on Temporal at scale (15M+ workflows/day). The talk...","thumbnailUrl":"https://i.ytimg.com/vi/u7Vs8h0t674/sddefault.jpg","uploadDate":"2026-04-10T17:49:57.703Z","duration":"PT60M","url":"https://api.daily.dev/r/SimYwTKdZ","embedUrl":"https://www.youtube.com/embed/u7Vs8h0t674"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Temporal","item":"https://daily.dev/sources/temporal"},{"@type":"ListItem","position":3,"name":"Road to Replay: Safely Upgrading Payment Workflows at Scale with Block"}]}
```

