Most active commenters

    ←back to thread

    IBM to acquire Confluent

    (www.confluent.io)
    443 points abd12 | 27 comments | | HN request time: 0.539s | source | bottom
    1. itsanaccount ◴[] No.46192728[source]
    And the enshittification treadmill continues. Great time to be a kafka alternative.

    I'll start.

    https://github.com/tansu-io/tansu

    replies(7): >>46192825 #>>46192969 #>>46192986 #>>46193113 #>>46193154 #>>46193282 #>>46196760 #
    2. gooob ◴[] No.46192825[source]
    wait what's wrong with kafka?
    replies(4): >>46192852 #>>46193061 #>>46193698 #>>46193739 #
    3. itslennysfault ◴[] No.46192852[source]
    What's wrong with kafka or what WILL BE wrong with kafka?
    replies(1): >>46202556 #
    4. osigurdson ◴[] No.46192969[source]
    https://nats.io

    Not a drop in replacement, but worth looking at.

    replies(1): >>46201770 #
    5. toomuchtodo ◴[] No.46192986[source]
    https://pulsar.apache.org/
    6. Boxxed ◴[] No.46193061[source]
    I was in the midst of writing a snarky reply and then realized my actual issue with Kafka is that people reach for it way too often and use it in ways that don't really make sense.

    Kind of like how people use docker for evrything, when what you really should be doing is learn how to package software.

    replies(1): >>46193191 #
    7. adamdecaf ◴[] No.46193113[source]
    Redpanda has been a superior wire-compatible alternative to Kafka for years.

    https://www.redpanda.com/compare/redpanda-vs-kafka

    replies(1): >>46193144 #
    8. inesranzo ◴[] No.46193144[source]
    Until Redpanda becomes enshittified.

    Sigh.

    9. spyspy ◴[] No.46193154[source]
    `SELECT * FROM mytable ORDER BY timestamp ASC`
    replies(1): >>46193266 #
    10. stackskipton ◴[] No.46193191{3}[source]
    Ops here, Docker is packaging software.

    Agree on the Kafka thing though. I've seen so many devs trip over Kafka topics, partitions and offsets when their throughput is low enough that RabbitMQ would do fine.

    replies(1): >>46193597 #
    11. alexjplant ◴[] No.46193266[source]
    Ah yes, and every consumer should just do this in a while (true) loop as producers write to it. Very efficient and simple with no possibility of lock contention or hot spots. Genius, really.
    replies(2): >>46193348 #>>46193839 #
    12. tormeh ◴[] No.46193282[source]
    Apache Iggy seems like a project with a lot of momentum: https://github.com/apache/iggy
    13. antonvs ◴[] No.46193348{3}[source]
    It's one of my favorite patterns, because it's the highest-impact, lowest-hanging fruit to fix in many systems that have hit serious scaling bottlenecks.
    14. marcosdumay ◴[] No.46193597{4}[source]
    No, docker is a software for packaging systems.

    The people distributing software should shut them damn up about how the rest of the system it runs in is configured. (But not you, your job is packaging full systems.)

    That said, it seems to me that this is becoming less of a problem.

    15. kevstev ◴[] No.46193698[source]
    Nothing inherently wrong with the core product IMHO. The issue is more with Confluent, who have been constantly swinging from hot buzzword to hot buzzword for the last few years in search of growth. Confluent cloud is very expensive, and you still have to deal with a surprising amount of scaling headaches. I have people I consider friends that work there, so I don't want to go too deep into their various missteps, but the Kafka ecosystem has been largely stagnant outside of getting rid of Zookeeper and simplifying operations/deployment. There have been some decent quality of life fixes, but the platform is very expensive, yet if you are really all-in on Kafka, you would be insane to not get support from Confluent- it can break in surprising ways.

    So you are stuck with some really terrible tradeoffs- Go with Confluent Cloud, pay a fortune, and still likely have some issues to deal with. Or you could go with Confluent Platform, still have to pay people to operate it, while Confluent the company focuses most of their attention on Cloud and still charges you a fortune. Or you could just go completely OS and forgo anything Confluent and risk being really up the river when something inevitably breaks, or you have to learn the hard way that librdkafka has poor support for a lot of the shiny features discussed in the release notes.

    Redpanda has surpassed them from a technical quality perspective, but Kafka has them beat on the ecosystem and the sheer inertia of moving from one platform to another. Kafka for example was built in a time of spinning rust hard disks, and expects to be run on general purpose compute nodes, where Redpanda will actually look at your hardware and optimize the number of threads its spawns for the box it is on- assuming it is going to be the only real app running there, which is true for anything but a toy deployment.

    This is my experience from running platform teams and being head of messaging at multiple companies.

    16. itsanaccount ◴[] No.46193739[source]
    https://en.wikipedia.org/wiki/Enshittification is helpful if you arent aware of how late stage capitalism works
    replies(1): >>46195083 #
    17. CharlieDigital ◴[] No.46193839{3}[source]
    I've implemented a distributed worker system on top of this paradigm.

    I used ZMQ to connect nodes and the worker nodes would connect to an indexer/coordinator node that effectively did a `SELECT FROM ORDER BY ASC`.

    It's easier than you may think and the bits here ended up with probably < 1000 SLOC all told.

        - Coordinator node ingests from a SQL table
        - There is a discriminator key for each row in the table for ordering by stacking into an in-memory list-of-lists
        - Worker nodes are started with _n_ threads
        - Each thread sends a "ready" message to the coordinator and coordinator replies with a "work" message
        - On each cycle, the coordinator advances the pointer on the list, locks the list, and marks the first item in the child list as "pending"
        - When worker thread finishes, it sends a "completed" message to the coordinator and coordinator replies with another "work" message
        - Coordinator unlocks the list the work item originated from and dequeues the finished item.
        - When it reaches the end of the list, it cycles to the beginning of the list and starts over, skipping over any child lists marked as locked (has a pending work item)
    
    Effectively a distributed event loop with the events queued up via a simple SQL query.

    Dead simple design, extremely robust, very high throughput, very easy to scale workers both horizontally (more nodes) and vertically (more threads). ZMQ made it easy to connect the remote threads to the centralized coordinator. It was effectively "self balancing" because the workers would only re-queue their thread once it finished work. Very easy to manage, but did not have hot failovers since we kept the materialized, "2D" work queue in memory. Though very rarely did we have issues with this.

    replies(2): >>46194812 #>>46198993 #
    18. ahoka ◴[] No.46194812{4}[source]
    Yeah, but that's like doing actual engineering. Instead you should just point to Kafka and say that it's going to make your horrible architecture scale magically. That's how the pros do it.
    replies(1): >>46195462 #
    19. philipallstar ◴[] No.46195083{3}[source]
    Late stage of what?
    20. tormeh ◴[] No.46195462{5}[source]
    Kafka isn't magic, but it's close. If a single-node solution like an SQL database can handle your load then why shouldn't you stick with SQL? Kafka is not for you. Kafka is for workloads that would DDoS Postgres.
    21. linsomniac ◴[] No.46196760[source]
    Do any of these alternatives make it easy to transition a system that is using Kafka Connectors and Avro?
    replies(1): >>46203369 #
    22. kerblang ◴[] No.46198993{4}[source]
    Kafka is really not intended to improve on this. Instead, it's intended for very high-volume ETL processing, where a classical message queue delivering records would spend too much time on locking. Kafka is hot-rodding the message queue design and removing guard rails to get more messages thru faster.

    Generally I say, "Message queues are for tasks, Kafka is for data." But in the latter case, if your data volume is not huge, a message queue for async ETL will do just fine and give better guarantees as FIFO goes.

    In essence, Kafka is a very specialized version of much more general-purpose message queues, which should be your default starting point. It's similar to replacing a SQL RDBMS with some kind of special NoSQL system - if you need it, okay, but otherwise the general-purpose default is usually the better option.

    replies(1): >>46199166 #
    23. CharlieDigital ◴[] No.46199166{5}[source]
    Of course this is not the same as Kafka, but the comment I'm replying to:

        > Ah yes, and every consumer should just do this in a while (true) loop as producers write to it. Very efficient and simple with no possibility of lock contention or hot spots. Genius, really.
    
    Seemed to imply that it's not possible to build a high performance pub/sub system using a simple SQL select. I do not think that is true and it is in fact fairly easy to build a high performance pub/sub system with a simple SQL select. Clearly, this design as proposed is not the same as Kafka.
    replies(1): >>46199527 #
    24. alexjplant ◴[] No.46199527{6}[source]
    No, I implied that implementing pub/sub with just a select statement is silly because it is. Your implementation accounts for the downfalls of this approach with smart design using a message queue and intelligent locking semantics. Parent of my comment was glib and included none of this.
    25. shadow28 ◴[] No.46201770[source]
    https://jepsen.io/analyses/nats-2.12.1
    26. PeterCorless ◴[] No.46202556{3}[source]
    So much that we presume in the modern cloud wasn't a given when Apache Kafka was first released in 2011.

    kevstev wrote just above about Kafka being written to run on spinning disks (HDDs), while Redpanda was written to take advantage of the latest hardware (local NVMe SSDs). He has some great insights.

    As well, Apache Kafka was written in Java, back in an era when you were weren't quite sure what operating system you might be running on. For example, when Azure first launched they had a Windows NT-based system called Windows Azure. Most everyone else had already decided to roll Linux. Microsoft refused to budge on Linux until 2014, and didn't release its own Azure Linux until 2020.

    Once everyone decided to roll Linux, the "write once run everywhere" promise of Java was obviated. But because you were still locked into a Java Virtual Machine (JVM) your application couldn't optimize itself to the underlying hardware and operating system you were running on.

    Redpanda, for example, is written in C++ on top of the Seastar framework (seastar.io). The same framework at the heart of ScyllaDB. This engine is a thread-per-core shared-nothing architecture that allows Redpanda to optimize performance for hardware utilization in ways that a Java app can only dream of. CPU utilization, memory usage, IO throughput. It's all just better performance on Redpanda.

    It means that you're actually getting better utility out of the servers you deploy. Less wasted / fallow CPU cycles — so better price-performance. Faster writes. Lower p99 latencies. It's just... better.

    Now, I am biased. I work at Redpanda now. But I've been a big fan of Kafka since 2015. I am still bullish on data streaming. I just think that Apache Kafka, as a Java-based platform, needs some serious rearchitecture,

    Even Confluent doesn't use vanilla Kafka. They rewrote their own engine, Kora. They claim it is 10x faster. Or 30x faster. Depending on what you're measuring.

    1. https://www.confluent.io/confluent-cloud/kora/

    2. https://www.confluent.io/blog/10x-apache-kafka-elasticity/

    27. jsumrall ◴[] No.46203369[source]
    Pulsar supports the kafka protocol, so anything that works with Kafka should just work with Pulsar.

    https://docs.streamnative.io/cloud/build/kafka-clients/kafka...