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

Sharing global graph state through data aggregation

Aggregators are a key component for implementing several graph-based algorithms that rely on sharing global state between vertices. They are concurrent-safe primitives that apply an aggregation operator to a set of values and make the result available to all the vertices at the next super-step.

Any kind of operator can be used to create an aggregator as long as it is commutative and associative. Aggregators are commonly used to implement counters, accumulators, or for keeping track of the minimum and/or maximum value of some quantity.

In the upcoming sections, we will do the following:

  • Define a generic interface for aggregators
  • Augment our Graph type with helper methods for registering ...
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