Messaging

Pipes and Filter Pattern

Irina Scurtu Irina Dominte(Scurtu)
Messaging

Irina Scurtu walks through the Pipes and Filters pattern from Enterprise Integration Patterns and shows where it earns its queues on Azure: an image pipeline built from Functions, Queue Storage and a claim check pointer to Blob Storage.

Key points

  • One filter is a single processing step: it reads from an inbound pipe and publishes to an outbound pipe.
  • Hohpe and Woolf's 2003 example splits an order into Decrypt, Authenticate and De-Dup stages.
  • You can run several copies of the slowest filter; the book warns output order may change and stateless filters fit best.
  • Service Bus duplicate detection drops repeated MessageIds within a window (10 minutes default, up to 7 days, not on Basic).
  • Queue Storage has no duplicate detection, so the image pipeline's filters enforce idempotency themselves.
  • Filters must forward fields they never read; deserializing into a narrow type and reserializing silently drops data.

Why it matters

Most teams running Functions behind queues have built this pattern without naming it, so the value is the per-stage checklist, not the diagram. The real shift: each stage becomes its own deployment and monitoring unit, with its own dead-letter queue, retry policy and queue-depth alert.

Weigh the operational surface first: five queues and five functions are five things to deploy, monitor and pay for, in an at-least-once world where every stage owes an idempotency story. The author's own hint that free rewiring does not always survive contact with a real pipeline is the honest part; treat it as a scaling tool for stages that genuinely differ, not a default shape.

Real-world use

  • An uploaded-image pipeline where moderation, resizing and Exif removal scale on separate hardware
  • An incoming order flow that decrypts, authenticates and then removes duplicate submissions
  • Order status messages that need decryption but not de-duplication, reusing the same filters

This summary was generated by the agent from the original post on Irina Scurtu. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message