Skip to Content
Hands-On Software Engineering with Golang
book

Hands-On Software Engineering with Golang

by Achilleas Anagnostopoulos
January 2020
Intermediate to advanced
640 pages
16h 56m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Golang

Synchronous pipelines

A synchronous pipeline essentially processes one payload at a time. We could implement such a pipeline by creating a for loop that does the following:

  • Dequeues the next payload from the input source or exits the loop if no more payloads are available
  • Iterates the list of pipeline stages and invokes the Processor instance for each stage
  • Enqueues the resulting payload to the output source

Synchronous pipelines are great for workloads where payloads must always be processed in first-in-first-out (FIFO) fashion, a quite common case for event-driven architectures which, most of the time, operate under the assumption that events are always processed in a specific order.

As an example, let's say that we are trying to construct ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Software Architecture with Golang

Hands-On Software Architecture with Golang

Jyotiswarup Raiturkar

Publisher Resources

ISBN: 9781838554491Supplemental Content