Better HN
topnewbestaskshowjobs
Log inSign up

spetz

248 karma · joined Apr 8, 2016 (10y ago) · 80 submissions

Submissions

comment 1mo ago · link · parent

Part 3 out of 3 of the blog series about our VSR implementation, this time focusing on the deterministic simulation testing (DST).

2.

Apache Iggy's migration journey to clustering powered by Viewstamped Replication(iggy.apache.org ↗)

4 points · by spetz · 1mo ago · 1 comment

comment 2mo ago · link · parent

Sort of, but anyone familiar with Kafka should feel like at home, although there a few subtle differences when it comes to the transport protocol, hierarchy etc. And VSR clustering is hopefully coming this week!

comment 2mo ago · link · parent

> I am a passenger and I ride and I ride

comment 2mo ago · link · parent

There's an open PR to implement sink + source for MQTT https://github.com/apache/iggy/issues/3385

Also, since we've been asked about this a lot, there's a high chance, that we might implement MQTT Gateway, just like we currently do for Kafka (proxy on top, as a separate runtime).

comment 2mo ago · link · parent

Awesome! You can find mine too in one of the older blog posts, hence the name :)

comment 2mo ago · link · parent

It's more like Kafka or Pulsar in terms of being the message streaming infrastructure (so an append-only log, not the message broker like, e.g., raw RabbitMQ). I think that the main docs page should give you a good understanding of how the data is stored/organized https://iggy.apache.org/docs/ - for example, on top of the topics, we also have "stream" which is just an extra hierarchy that can be used for something like multi-tenancy isolation or anything else depending on the use case. And yes, there's a built-in RBAC (read/manage particular streams, topics, servers, etc.). As for protocols, we have native support for TCP, QUIC, WebSocket (these 3 are stateful binary protocols), and HTTP as well.

There are a bunch of things that sum up to the overall performance gains - using Rust, thread-per-core architecture + shared-nothing (think of Seastar), custom zero-copy serialization, io_uring for disk * network I/O, and VSR-based consensus (inspired by TigerBeetle) - we simply build all this stuff from the ground up to make the most out of modern hardware and Kernel features, with a custom protocol on top (but the Kafka proxy/gateway is also WiP). And there are also connectors (sink, source), benchmarking runtime, CLI and so on.

comment 2mo ago · link · parent

Apache Iggy™ has officially graduated from the Apache Incubator and is now an Apache Software Foundation Top-Level Project (TLP)

It’s been quite a journey, from a small Rust message-streaming experiment in 2023 to an independent Apache project with a growing community. And its biggest feature yet, being the Viewstamped Replication Revisited (VSR) clustering, is coming soon.

9.

Apache Iggy, a message streaming platform in Rust, graduates to an Apache TLP(iggy.apache.org ↗)

98 points · by spetz · 2mo ago · 30 comments

10.

Apache Iggy's migration journey to thread-per-core design powered by io_uring(iggy.apache.org ↗)

3 points · by spetz · 9mo ago · discuss

comment 11mo ago · link · parent

Thank you for the mention! BTW, we're currently working on VSR (Viewstamped Replication) to provide the proper clustering :)

comment 1y ago · link · parent

Thank you, and yes, 100% agreed about Krishna's work! :)

comment 1y ago · link · parent

Thanks! Actually, the mentioned PR was just an internal merge; the one to the master branch is this one https://github.com/apache/iggy/pull/2299 which happened last week :)

Sans-IO is for clients only, and we'd like to introduce it one day to SDK to support the different runtimes as well as the blocking, sync client.

comment 1y ago · link · parent

There's a core difference between the message queue and the stream, and one of them is that the append-only log acts as a simple database from which multiple independent consumers can read records at the same time; hence, you don't truncate the append-only log unless specified in its settings via a particular cleanup policy (e.g. based on message expiry or its allowed size).

15.

Show HN: Building WebSocket in Apache Iggy with Io_uring and Completion Based IO(iggy.apache.org ↗)

29 points · by spetz · 1y ago · 6 comments

comment 2y ago · link · parent

Iggy is a message streaming infrastructure (think of Kafka for example), not a messaging platform like Discord or so :)

comment 2y ago · link · parent

That's a good name! :)

comment 2y ago · link · parent

Right, I meant TCP without TLS, and when it comes to QUIC I only did benchmark using the "dangerous" mode (disabled local cert validation). I don't have the exact numbers, but AFAIR on MacOS raw TCP was a few times faster than QUIC, while on Linux (e.g. PopOS distro) TCP was maybe around 20-30% faster?

Still, there are plenty of options to be configured in Quinn (buffer size, send/receive window etc.), so it might be that with some tweaking the performance would be similar or QUIC would be even faster than TCP - this is also one of the things that I'd like to spend more time with in the future. We expose most of these options in the server configuration file, so it's easy to adjust.

Thank you for contributing to such a great library, really easy to work with :)

comment 2y ago · link · parent

Nice one, looks quite similar indeed! May I ask why did you discontinue the further work?

comment 2y ago · link · parent

I did some dotnet OSS in the past, but there's something special about Rust community and I guess that if I'd picked another language instead, I wouldn't gather such an amazing team :)

comment 2y ago · link · parent

As already mentioned, we've decived to use monoio, just to have something to begin with, it will take at least a few months to rewrite the core parts to make use of io_uring and thread-per-core approach (if feasible), so staying on the bleeding edge is more like a sandbox for us - we might decide to go with another runtime, like glommio, mfio or something else.

comment 2y ago · link · parent

Of course, they hide the details behind io_uring, it's just that monoio seemed even easier to work with. It's not set in stone, though, actually there are new runtimes being developed as we speak, for example mfio - we'll see what will be our final choice, but we've decided to start with monoio.

Speaking of the other platforms, having the fallback to epoll or kqueue (they've even announced some Windows integration) is nice to have, however, at some point we might just purely focus on Linux development anyway (io_uring only), if there'd be any issues e.g. when it comes to the code design to provide the compatibility across multiple OS.

comment 2y ago · link · parent

Thanks, I do agree, they're both lovely! :D

comment 2y ago · link · parent

Can't say for sure, we share some of the same concepts that can be found in Kafka or RabbitMQ Streams, but at the same time, try to build something from the ground up and focus on low-level I/O improvements :)

comment 2y ago · link · parent

Thank you :)

comment 2y ago · link · parent

I had 0 Rust experience and close to 0 of system programming experience (except playing with some lower level communication protocols etc. but nothing fancy), but I'd say that something like message streaming isn't the system programming - it's close to building the database, but nowhere close to making direct usage of low level system APIs.
123