---
title: "Parallel Run Pattern - A Migration Technique in Microservices Architecture"
description: "Zalando's Returns team extracted returns logic from a legacy monolith into a new microservice using the Parallel Run pattern."
url: "https://swe.quest/articles/parallel-run-pattern-a-migration-technique-in-microservices-architecture-762d770d757278f2"
canonical: "https://engineering.zalando.com/posts/2021/11/parallel-run.html"
source: "Zalando Engineering"
published: "2021-11-03"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["refactoring","microservices","deployment","testing","observability"]
---

# Parallel Run Pattern - A Migration Technique in Microservices Architecture

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2021-11-03, 9 min read, Case study. Original: [https://engineering.zalando.com/posts/2021/11/parallel-run.html](https://engineering.zalando.com/posts/2021/11/parallel-run.html)

## Summary

Zalando's Returns team extracted returns logic from a legacy monolith into a new microservice using the Parallel Run pattern. After responding to the client, the monolith asynchronously POSTs the original request and its response to a /consistency-checks endpoint, which replays the request locally and compares status, headers and body, emitting matched/unmatched/failed metrics to Prometheus and Grafana. Each endpoint had its own consistency threshold, and traffic was switched one endpoint at a time via the Skipper proxy, which also made rollback a proxy config change. Tradeoffs include roughly doubled load, tricky comparisons (headers, ordering, PDFs), GDPR handling of captured data, unsuitability for non-idempotent endpoints, and significant setup and cleanup effort.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [Microservices](https://swe.quest/tags/microservices.md) (Backend & APIs)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)

## Prerequisites

- microservices basics ([easy posts on Microservices](https://swe.quest/tags/microservices.md?difficulty=easy))
- HTTP semantics
- idempotency

## Keywords

Parallel Run pattern, Skipper, Prometheus, Grafana, Zalando

## Related posts

- [Keep the monolith, but split the workloads](https://swe.quest/articles/keep-the-monolith-but-split-the-workloads-a46b5ee6a5f1e352.md): incident.io · 2023-04-12 · Medium · 9 min read · Resilience, System design, PostgreSQL, Go, Microservices
  A Go monolith can get much of the reliability isolation of microservices by splitting workloads into separate deployments of the same binary, instead of breaking it into services.
- [You Want Microservices, But Do You Really Need Them?](https://swe.quest/articles/you-want-microservices-but-do-you-really-need-them-a1cb73ee67660042.md): Docker · 2025-11-28 · Easy · 14 min read · Microservices, System design, Cost optimization
  Microservices trade the simplicity of one codebase for network seams, distributed data consistency problems, slow and brittle cross-service testing, and heavy operational tooling, and that trade only pays off at large scale with clear domain boundaries and mature teams.
- [More Reliable Connections to Your Repls](https://swe.quest/articles/more-reliable-connections-to-your-repls-07578bd14f5efb1d.md): Replit · 2024-03-18 · Medium · 5 min read · Load balancing, System design, Resilience, SRE, Real-time systems
  Replit split reverse WebSocket proxying out of Conman, its container manager on GCE VMs, into a dedicated service called Eval that sits between clients and Conman VMs.
- [Zero-Downtime Blue/Green Deployments on Render with Canary Traffic Splitting](https://swe.quest/articles/zero-downtime-blue-green-deployments-on-render-with-canary-traffic-splitting-53f6cff8ad3005c5.md): Render · 2026-05-27 · Medium · 5 min read · Deployment, CI/CD, Observability
  A blue/green canary pipeline for Render orchestrates six services (API, web frontend, worker, each duplicated into blue and green environments) using SuperPlane, an open-source DevOps workflow engine, with Cloudflare weighted traffic routing, Dash0 synthetic checks and PromQL error rates, and GitHub Actions smoke tests.
- [From Event-Driven Chaos to a Blazingly Fast Serving API](https://swe.quest/articles/from-event-driven-chaos-to-a-blazingly-fast-serving-api-515d5b06058dbe2a.md): Zalando Engineering · 2025-03-06 · Medium · 8 min read · Caching, Load balancing, Event-driven architecture, Performance engineering, E-commerce
  Zalando replaced an event-driven pipeline that merged Product, Price and Stock events with a central Product Read API (PRAPI).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
