Re:Apache Pulsar is an open-source distributed pub-sub messa...
by barbarbar on Thursday January 02, 2020 @11:08AM
(#21936523)
How is it compared to kafka?
[ Parent
| on HN ]
Re:Apache Pulsar is an open-source distributed pub-sub messa...
by SkyRocknRoll on Thursday January 02, 2020 @11:14AM
(#21936591)
Most of the flaws of Kafka are carefully studied and fixed in Apache pulsar. I have written a blog about why we went ahead with pulsar https://medium.com/@yuvarajl/why-nutanix-beam-went-ahead-wit...
Re:Apache Pulsar is an open-source distributed pub-sub messa...
by progval on Thursday January 02, 2020 @12:05PM
(#21937146)
> when consumers are lagging behind, producer throughput falls off a cliff because lagging consumers introduce random reads
I am confused by this. The format of Kafka's log files is designed to allow reading and sending to clients directly using sendfile, in sequential reads of batches of messages. http://kafka.apache.org/documentation/#maximizingefficiency
Re:Apache Pulsar is an open-source distributed pub-sub messa...
by manigandham on Thursday January 02, 2020 @12:19PM
(#21937363)
Kafka brokers handle connections to consumers and data storage. This creates contention as the primaries for each partition have to service the traffic and handle IO. Consumers that aren't tailing the stream will cause slowdowns because Kafka has to seek to that offset from files which aren't cached in RAM.
Pulsar separates storage into a different layer (powered by Apache Bookkeeper) which allows consumers to read directly from multiple nodes. There's much more IO throughput available to handle consumers picking up anywhere in the stream.
Re:Apache Pulsar is an open-source distributed pub-sub messa...
by geeio on Thursday January 02, 2020 @12:18PM
(#21937352)
Kafka works best when the data it is returning to consumers is in the page cache.
When consumers fall behind, they start to request data that might not be in the page cache, causing things to slow down.
Re:Apache Pulsar is an open-source distributed pub-sub messa...
by EdwardDiego on Thursday January 02, 2020 @06:02PM
(#21940909)
> However, we can’t use Kafka as a queuing system because the maximum number of workers you can have is limited by the number of partitions, and because there is no way to acknowledge messages at the individual message level. You would need to manually commit offsets in Kafka by maintaining a record of individual message acknowledgments in your own data store, which adds a lot of extra overhead — too much overhead in my opinion.
I just want to clarify this - you're limited to N concurrent consumers for N partitions per consumer group.
Re:Apache Pulsar is an open-source distributed pub-sub messa...
by manigandham on Thursday January 02, 2020 @12:11PM
(#21937252)
Separates storage from brokers for better scaling and performance. Millions of topics without a problem and built-in tenant/namespace/topic hierarchy. Kubernetes-native. Per-message acknowledgement instead of just an offset. Ephemeral pub/sub or persistent data. Built-in functions/lambda platform. Long-term/tiered storage into S3/object storage. Geo-replication across clusters.
Re:Apache Pulsar is an open-source distributed pub-sub messa...
by cbartholomew on Thursday January 02, 2020 @12:10PM
(#21937233)
You might want to check out this blog post I wrote comparing Kafka to Pulsar: https://kafkaesque.io/5-more-reasons-to-choose-apache-pulsar...
Re:Apache Pulsar is an open-source distributed pub-sub messa...
by cbartholomew on Thursday January 02, 2020 @12:12PM
(#21937260)
If you have an O'Reilly subscription, you can also check out this detailed report comparing Pulsar and Kafka: https://learning.oreilly.com/library/view/apache-pulsar-vers...
Re:Apache Pulsar is an open-source distributed pub-sub messa...
by eerrt on Thursday January 02, 2020 @11:30AM
(#21936763)
Some latency benchmarks: https://kafkaesque.io/performance-comparison-between-apache-...