Skip to main content
QUICK REVIEW

[Paper Review] Partisan: Enabling Cloud-Scale Erlang Applications

Christopher Meiklejohn, Heather Miller|arXiv (Cornell University)|Feb 7, 2018
Cloud Computing and Resource ManagementComputer Science19 references4 citations
TL;DR

Partisan is a topology-agnostic, channel-based distribution layer for Erlang that enables runtime selection of cluster topologies—such as full mesh, peer-to-peer, client-server, and publish-subscribe—improving scalability and performance. By distributing messages across multiple communication channels, Partisan achieves up to 30x better performance under congestion and 13.5x improvement in distributed database workloads compared to Distributed Erlang.

ABSTRACT

In this work, we present an alternative distribution layer for Erlang, named Partisan. Partisan is a topology-agnostic distributed programming model and distribution layer that supports several network topologies for different application scenarios: full mesh, peer-to-peer, client-server, and publish-subscribe. Partisan allows application developers to specify the network topology at runtime, rather than encoding topology-specific concerns into application code. Partisan additionally adds support for more channels, enabling users to distribute messages over multiple channels, sometimes in parallel. We implement and evaluate Partisan in the Erlang programming language and use it in the evaluation of three scenarios. The first scenario compares the raw performance between Distributed Erlang and Partisan, and shows that Partisan performs on par with or better than Distributed Erlang. The second scenario demonstrates that distributing traffic over multiple connections enables Partisan to perform up to 18x better under normal conditions, and up to 30x better in situations with network congestion and high concurrency. The third scenario demonstrates, using existing applications, that configuring the topology at runtime allows applications to perform up to 13.5x better or scale to clusters of thousands of nodes over the general-purpose runtime distribution layer.

Motivation & Objective

  • Address the scalability limitations of Distributed Erlang in modern cloud-scale applications that require diverse network topologies.
  • Enable application developers to select optimal cluster topologies at runtime without modifying application code.
  • Overcome performance bottlenecks in Distributed Erlang caused by head-of-line blocking, single-channel communication, and quadratic connection overhead.
  • Improve parallelism and fault tolerance by introducing multiple communication channels and topology specialization.
  • Demonstrate significant performance and scalability improvements in real-world distributed applications such as key-value stores and databases.

Proposed method

  • Design a topology-agnostic distributed programming model that supports multiple cluster topologies (full mesh, peer-to-peer, client-server, publish-subscribe) selectable at runtime.
  • Implement a channel-based full mesh backend that allows message distribution across multiple connections to exploit parallelism and reduce head-of-line blocking.
  • Integrate the Partisan layer as an alternative to Distributed Erlang, preserving Erlang’s lightweight process and message-passing model.
  • Use G-Counter-based distributed data structures to evaluate scalability in large-scale clusters.
  • Evaluate performance across three scenarios: raw performance comparison, multi-channel messaging under congestion, and dynamic topology configuration in large clusters.
  • Leverage existing Erlang applications (e.g., Riak Core) to validate real-world performance improvements.

Experimental results

Research questions

  • RQ1Can a distribution layer for Erlang support multiple cluster topologies at runtime without requiring application code changes?
  • RQ2To what extent can multi-channel message distribution improve performance in high-concurrency or high-latency network conditions?
  • RQ3How does topology specialization impact the scalability of distributed applications in large clusters (e.g., 1000+ nodes)?
  • RQ4Can Partisan outperform Distributed Erlang in terms of throughput and latency across diverse workloads such as distributed databases and key-value stores?
  • RQ5What are the performance bottlenecks in Distributed Erlang that limit scalability beyond ~60 nodes, and can they be mitigated through architectural changes?

Key findings

  • Partisan achieves performance on par with or better than Distributed Erlang in raw message passing benchmarks.
  • Distributing traffic across multiple channels improves performance by up to 18x under normal conditions and up to 30x under network congestion and high concurrency.
  • Runtime topology selection enables a lightweight key-value store to scale from 256 to 1024 nodes, demonstrating significant horizontal scalability.
  • The same application achieves up to 13.5x better performance when using an optimized topology (e.g., client-server or publish-subscribe) instead of a default full mesh.
  • Partisan effectively mitigates head-of-line blocking and reduces the impact of serialization overhead by leveraging parallel communication channels.
  • The design is generalizable and could improve performance in other actor-based systems like Akka Cluster and Microsoft Orleans, as demonstrated by its applicability to Riak Core.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.