<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Millwheel on Bharath's Blog</title><link>https://bharathbhushan1.github.io/blog/tags/millwheel/</link><description>Recent content in Millwheel on Bharath's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 29 Mar 2014 10:00:00 +0000</lastBuildDate><atom:link href="https://bharathbhushan1.github.io/blog/tags/millwheel/index.xml" rel="self" type="application/rss+xml"/><item><title>Understanding Millwheel</title><link>https://bharathbhushan1.github.io/blog/posts/2014-03-29-millwheel/</link><pubDate>Sat, 29 Mar 2014 10:00:00 +0000</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2014-03-29-millwheel/</guid><description>&lt;p&gt;I am reading Google&amp;rsquo;s interesting paper on the &lt;a href="http://research.google.com/pubs/pub41378.html"&gt;millwheel&lt;/a&gt; system.
Below is a digest.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;One time input to the system: computation graph, application code for nodes&lt;/li&gt;
&lt;li&gt;Ongoing stuff handled by the system: persistent state, streaming input&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The programming model provides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;short term persistent storage&lt;/li&gt;
&lt;li&gt;long term persistent storage&lt;/li&gt;
&lt;li&gt;low watermark timestamp&lt;/li&gt;
&lt;li&gt;logical time&lt;/li&gt;
&lt;li&gt;out-of-order record processing&lt;/li&gt;
&lt;li&gt;exactly-once semantics for record processing.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The persistent store is per-key per computation. So if there are 4 nodes in the
computation DAG, there will be 4 &amp;ldquo;tables&amp;rdquo; with rows keyed on the key in the
input record. Timers are based on low watermarks. The unique id which is used
for ensuring exactly once semantics is assigned by the system and not by the
user (not in the input). In a strong production, output data, state, timers &amp;ndash;
all are snapshotted in a single per-key per-computation atomic write. In a weak
production, output data is sent forth optimistically assuming the receiver can
ACK it quickly. A write sequencer is assigned to a lexicographic key interval
of each computation. A sequencer ensures that older pending writes dont
overwrite results of newer writes. Also the low watermarks are persisted for
data consistency.&lt;/p&gt;</description></item></channel></rss>