Yahoo’s New Pulsar: A Kafka Competitor?
Yahoo today announced that it’s open sourcing Pulsar, a new distributed “publish and subscribe” messaging systems designed to be highly scalable while maintaining low levels of latency. The bus already backs some of Yahoo’s key apps, and now the Web giant is seeking the help of the open source community to take Pulsar to the next level.
In a post to the Yahoo Engineering blog, Yahoo developers Joe Francis and Matteo Merli explained the application requirements that spurred the creation of the new “pub-sub” messaging system that would become Pulsar.
“These applications provide real-time services, and need publish-latencies of 5ms on average and no more than 15ms at the 99th percentile,” they write. “At Internet scale, these applications require a messaging system with ordering, strong durability, and delivery guarantees.” The messages must also be committed to multiple disks or nodes in order to get to the 99.999% guaranteed durability level, they add.
“At the time we started, we could not find any existing open-source messaging solution that could provide the scale, performance, and features Yahoo required to provide messaging as a hosted service, supporting a million topics,” Francis and Merli write. “So we set out to build Pulsar as a general messaging solution, that also addresses these specific requirements.”
Yahoo designed Pulsar to scale horizontally on commodity hardware, and to provide messaging as a service to multiple applications. The system can scale to handle millions of independent topics and millions of messages published per second, according to Pulsar’s GitHub page.
Developers and administrators interact with Pulsar through a collection of APIs. The software also includes a client library that encapsulates the messaging protocol and handles “complex” functions like service discovery and establishing and recovering connections.
A Pulsar cluster is composed of a set of brokers, BookKeepers (or bookies), and ZooKeeper for coordination and configuration management. A Pulsar instance typically consists of multiple physical clusters that are geographically separated from one another, Yahoo says.
Pulsar uses Apache Bookkeeper (committed by Yahoo to open source in 2011) as its durable storage mechanism. “With Bookkeeper, applications can create many independent logs, called ledgers,” Pulsar’s project page on GitHub says. “A ledger is an append-only data structure with a single writer that is assigned to multiple storage nodes (or bookies) and whose entries are replicated to multiple of these nodes.”
Pulsar uses brokers to serve topics. Each topic is assigned to a broker, and an individual broker can serve thousands of topics, Yahoo says. “The broker accepts messages from writers, commits them to a durable store, and dispatches them to readers,” Yahoo says.
An instance of Apache Zookeeper keeps all the other pieces of Pulsar working together. Yahoo contributed ZooKeeper to the Apache Software Foundation in 2008, and since then the software has become a key component of Apache Hadoop and other big data frameworks.
It appears the use of BookKeeper is key to Pulsar’s high level of durability, and the capability to scale elements of the messaging bus independently. It also offers clues as to why Yahoo developed Pulsar in the first place, and didn’t rely on other open source messaging systems, such as Apache Kafka.
“By using separate physical disks (one for journal and another for general storage), bookies are able to isolate the effects of read operations from impacting the latency of ongoing write operations, and vice-versa,” the Yahoo developers write on their blog. “Since read and write paths are decoupled, spikes in reads – which commonly occur when readers drain backlog to catch up – do not impact publish latencies in Pulsar. This sets Pulsar apart from other commonly-used messaging systems.”
While Kafka was available when Yahoo started developing Pulsar, the technology didn’t offer some of the features that Yahoo’s engineering team required, Yahoo tells Datanami.
Specifically, features like offset (cursor) management, geo-replication, multi-tenancy, and performance under message backlog conditions were not available in Kafka then, and some even aren’t available now, a Yahoo spokesperson says.
Yahoo’s engineering team deployed its first Pulsar instance in the spring of 2015, and use of it has grown quickly since then. Today Pulsar backs Yahoo applications like Mail, Finance, Sports, Gemini Ads, and Sherpa, which is Yahoo’s distributed key-value service. All told, Pulsar publishes more than 100 billion messages per day across 1.4 million topics with an average latency of less than 5 ms.
By making Pulsar available under an Apache 2.0 license, Yahoo hopes to spur development of the messaging bus. Specific areas the company is currently looking to improve upon include decreasing the tiem it takes to migrate tpics among brokers from 10 seconds to less than one second, improving the 99.9-percentile publish latencies to 5ms, and providing additional language bindings for Pulsar.
Yahoo’s Pulsar project is not to be confused with the real-time analytics platform named Pulsar that came out eBay. You can read more about the eBay Software Foundation’s product at gopulsar.io.
August 13, 2020
- Infoworks Announces DataFoundry Free Trial on Google Cloud
- KDD 2020 Honors Career Achievements in Knowledge Discovery and Data Mining
- SQream Connector in Tableau’s Extension Gallery Enables Interactive Analytics on Massive Data Stores
- Infoworks DataFoundry for Databricks Free Trial Now Available in Microsoft Azure Marketplace
August 12, 2020
- Alluxio Announces Record Growth for 1H 2020 in Hybrid and Multi-Cloud Data Orchestration
- Harver’s Google Cloud Integration Helped Place Thousands of Americans in Jobs During COVID-19 Pandemic
- Alteryx and UiPath Partner to Accelerate Digital Transformation with Hyperautomation
- Tableau 2020.3 Adds External Write to Database, Enhanced Administrator Tools
- Inspur Develops Technology to Protect 300 Wild Asian Elephants and Drive Ecological Harmony
- Collibra Launches as a Managed Service on the Google Cloud Platform
- ElToro.com Helps Combat the COVID-19 Pandemic Using Data Science
- Myntelligence Taps Tigergraph to Optimize its Marketing Campaigns, Unlock Real-Time Business Insights
- Yellowbrick Connector for Tableau is Now Available
- Juice Analytics Launches Data Reporting Platform ‘Juicebox’ in Beta
August 11, 2020
- Matillion Data Loader Now Available in Snowflake’s Partner Connect
- ChaosSearch Names Ed Walsh, Recent IBM Storage GM, as Chief Executive Officer
- Parabola Raises $8M to Enable Everyone to Automate Repetitive Data Tasks, No Coding Required
- DataRobot Launches Pathfinder: A Comprehensive Library of 100+ AI Use Cases
- New BSC Spin-Off Provides a Cloud Platform for Fast Data Analytics
- Yugabyte Announces Second Annual Distributed SQL Summit
Most Read Features
- R and Python: The Data Science Dynamic Duo
- Big Data File Formats Demystified
- Big Data Apps Wasting Billions in the Cloud
- How to Build a Better Machine Learning Pipeline
- Is Python Strangling R to Death?
- What’s the Difference Between AI, ML, Deep Learning, and Active Learning?
- How COVID-19 Is Impacting the Market for Data Jobs
- To Centralize or Not to Centralize Your Data–That Is the Question
- R Works Its Way Into Qubole’s Data Lake
- Is Hadoop Officially Dead?
- More Features…
Most Read News In Brief
- Left for Dead, R Surges Again
- Data Prep Still Dominates Data Scientists’ Time, Survey Finds
- Why Gartner Dropped Big Data Off the Hype Curve
- HPE Acquires MapR
- Kepler AutoML Targets Next-Gen Business Analysts
- Spark 3.0 Brings Big SQL Speed-Up, Better Python Hooks
- Researchers Explore Link Between American Individualism and Poor COVID-19 Response
- Global DataSphere to Hit 175 Zettabytes by 2025, IDC Says
- Collibra, Tableau Team on COVID Data Catalog
- On the Radar: COVID-19, Circonus, and Fake FB Accounts
- More News In Brief…
Most Read This Just In
- FortressIQ Launches Adaptive Computer Vision-Based Firewall for Data Privacy
- Cloudera Foundation Announces Grant Partnership with Urban Institute
- Orange and Google Cloud to Form Partnership in Data, AI and Edge Computing Services
- Syniti Acquires Virtyx Technologies
- Hazelcast, Sorint Expand Partnership to Address In-Memory Computing Adoption
- Privacera Raises $13.5M in Series A Funding
- MariaDB Platform X5 Adds New Distributed SQL
- The Apache Software Foundation Announces Apache APISIX as a Top-Level Project
- Dassault Systèmes Delivers Collaborative Data Science Experiences on the 3DEXPERIENCE Platform
- Splice Machine Announces Splice Machine Kubernetes Ops Center
- More This Just In…