AlgoViz

Lambda architecture

medium 27 min

Lambda architecture sends every event down two roads.

Where it shows up

The same pattern appears across everyday software.

  • Marz's original example

    The 2011 article counts page views per URL and hour: Hadoop recomputes the totals, Storm writes the last hours to Cassandra, and a query combines both.

  • Summingbird at Twitter

    The published framework lets one program run as a batch job and as an online job, to avoid writing the logic twice.

  • Apache Druid

    It ingests from streams, and its documentation describes that segments written by an overwriting task overshadow the existing ones for the same time chunk: late correction of live data.

  • A finance dashboard

    A design example: today's revenue from the stream, marked as preliminary, and all finished days from the closed books.

  • Recommendations

    A design example: the model is trained each night on everything, and the last clicks of the session are added when the page is built.

  • Search index

    A design example: a full rebuild each week, plus a small index of new documents that is searched together with it.