Back to results

Massachusetts Institute of Technology

Efficient parallel processing and fault tolerance in a streaming join system

Abstract

dc:description.abstract

Stream joins are an important component of stream processing, as they provide an online mechanism to efficiently combine multiple streams of data. In this thesis, we consider the RiverJoin system, which presents a general method for performing stream joins without relying on the ordering and timing of records in a stream. RiverJoin implements a useful set of primitives, called operands, that provide persistence and caching, allowing full-history stream joins. RiverJoin implements critical performance optimizations like batching and automatic parallelization, having performance comparable to lossy windowed joins while maintaining its strong correctness semantics. The individual contributions of the thesis come from further extending RiverJoin by adding functionality required for an end-to-end distributed system, specifically sharding and fault tolerance. In particular, we are able to leverage RiverJoin's automatic parallelization mechanism to provide a data stream sharding interface that allows for close-to linear speedup in stream joins, allowing arbitrarily fast joins. Stream processing systems require high throughput and low latency in order to provide real-time guarantees. Traditional methods of periodic global snapshots provide fault recovery at the cost of pausing the entire system during the snapshot process and persisting records in transit, leading to large snapshot sizes. In this thesis, we present a low-latency mechanism to snapshot a RiverJoin topology asynchronously, providing consistent system recovery and exactly-once delivery semantics between its operands. The method builds upon the idea of Asynchronous Barrier Snapshotting (ABS) and a novel asynchronous backup strategy, called fork-backup, that can snapshot an operand with gigabytes of state in milliseconds. Our results show that we can take snapshots without affecting system latency and throughput even with frequent snapshotting. We are also able to issue and complete a global snapshot for a complex RiverJoin topology in around 50ms, faster than a Java GC pause, and can recover from failure in less than a second.

Degree

thesis:*
Department dc:contributor.department
Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science.
Grantor dc:publisher
Massachusetts Institute of Technology
Year dc:date.issued
2018

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Mohan, Varun (Varun K.)
Advisor dc:contributor.advisor
  • Sam Madden.

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • MIT theses are protected by copyright. They may be viewed, downloaded, or printed from this source but further reproduction or distribution in any format is prohibited without written permission.
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Handle dc:identifier.uri
http://hdl.handle.net/1721.1/119578
OAI identifier oai:identifier
oai:dspace.mit.edu:1721.1/119578

Chain of custody

source
Harvested from
MIT
Base URL
dspace.mit.edu/oai/request
Last updated
2026-07-22
Source record
OAI-PMH GetRecord
citation

Mohan, Varun (Varun K.). Efficient parallel processing and fault tolerance in a streaming join system. Massachusetts Institute of Technology, 2018. http://hdl.handle.net/1721.1/119578