ZIO VS glommio

Compare ZIO vs glommio and see what are their differences.

glommio

Glommio is a thread-per-core crate that makes writing highly parallel asynchronous applications in a thread-per-core architecture easier for rustaceans. (by DataDog)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
ZIO glommio
59 29
3,991 2,842
0.8% 2.5%
9.5 7.6
5 days ago 3 days ago
Scala Rust
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ZIO

Posts with mentions or reviews of ZIO. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-11.
  • The golden age of Kotlin and its uncertain future
    4 projects | news.ycombinator.com | 11 Jan 2024
  • I had a great experience with Scala and hopefully it will get more popular
    10 projects | /r/scala | 11 Jul 2023
    scala has 2 healthy and pretty complete lib ecosystems : check out typelevel and ZIO. Both are FP oriented, which might not be your cup of tea at first glance but I would encourage you to try em out ! Softest introduction would be to start with the typelevel cats library and build up from there. The excellent Scala with Cats will ease you softly into an FP mindset. It's a bit dated and for scala 2 only but translating to Scala 3 is a very good exercise if you feel so inclined !
  • Is it prudent to use Scala for anything new?
    2 projects | news.ycombinator.com | 14 Jun 2023
    Last but not least, Scala is currently the language with one of the best effect systems in my opinion (https://zio.dev/). Kotlin for example has copied the approach with https://arrow-kt.io/ which I think is great actually. But when comparing Scala and Kotlin here, Scala wins by a large margin, it is a completely different world. It's like building a highly concurrent system in Erlang vs C.

    Of course, if you don't want to learn things like union types, traits/typeclasses and effects (similar to async/await but more powerful) you will be annoyed by Scala. But once you learned them, you can never go back.

  • How to get started?
    4 projects | /r/scala | 2 Jun 2023
    ZIO
  • Reconnecting with Scala. What's new?
    7 projects | /r/scala | 24 May 2023
    Links: - https://dotty.epfl.ch/ - https://scala-native.org/en/stable/ - https://www.scala-js.org/ - https://typelevel.org/ - https://zio.dev/ - https://github.com/scala-native/scala-native/pull/3120 - https://github.com/lampepfl/dotty/pull/16517 - https://dotty.epfl.ch/docs/reference/experimental/index.html - https://scala-cli.virtuslab.org/ - https://scalameta.org/metals/ - https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html - https://www.scala-lang.org/blog/2023/04/18/faster-scalajs-development-with-frontend-tooling.html - https://www.scala-lang.org/blog/2022/08/17/long-term-compatibility-plans.html
  • Why actors are a great fit for a data processing pipeline and how we use them for Quickwit's engine
    1 project | /r/programming | 11 May 2023
    For the Rx approach, The ZIO framework for Scala has a streaming API that can meet those sorts of requirements. e.g.
  • How to build a Scala Zio CRUD Microservice
    1 project | /r/TheSampleApp | 19 Apr 2023
    This tutorial will introduce how to build from scratch, a REST microservice using the ZIO framework, and examples of ZIO dependency injection, ZIO HTTP, JSON, JDBC, and others from the ZIO environment. The source code is available here
  • Cuál lenguaje les da de comer, comunidad?
    1 project | /r/programacion | 12 Mar 2023
  • Is Parallel Programming Hard, and, If So, What Can You Do About It? [pdf]
    4 projects | news.ycombinator.com | 19 Feb 2023
    I use ZIO (http://zio.dev) for Scala which makes parallel programming trivial.

    Wraps different styles of asynchronicity e.g. callbacks, futures, fibers into one coherent model. And has excellent resource management so you can be sure that when you are forking a task that it will always clean up after itself.

    Have yet to see anything that comes close whilst still being practical i.e. you can leverage the very large ecosystem of Java libraries.

  • 40x Faster! We rewrote our project with Rust!
    5 projects | /r/rust | 30 Jan 2023
    The one advantage Rust has over Scala is that it detects data races at compile time, and that's a big time saver if you use low level thread synchronization. However, if you write pure FP code with ZIO or Cats Effect that's basically a non-issue anyway.

glommio

Posts with mentions or reviews of glommio. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-13.
  • I want to share my latest hobby project, dbeel: A distributed thread-per-core nosql db written in rust
    3 projects | /r/rust | 13 Nov 2023
    I used glommio as the async executor (instead of something like tokio), and it is wonderful. For people wondering whether it's "good enough" or to use C++ and seastar (as I have thought about a lot before starting this project), take the leap of faith, it's fast - both in terms of run time and to code.
  • The State of Async Rust
    9 projects | news.ycombinator.com | 25 Sep 2023
    My understanding is you always need a runtime, somethings needs to drive the async flow. But there are others on the market, just not without the.. market domination... of tokio.

    https://github.com/smol-rs/smol looks promising simply for being minimal

    https://github.com/bytedance/monoio looks potentially easier to work with than tokio

    https://github.com/DataDog/glommio is built around linux io_uring and seems somewhat promising for performance reasons.

    I haven't played with any of these yet, because Tokio is unfortunately the path of least resistance. And a bit viral in how it's infected tings.

  • Learning Async Rust with Too Many Web Servers
    4 projects | news.ycombinator.com | 18 Aug 2023
    I think you missed one which is based on io_uring [1].

    In my benchmarks with a slightly tweaked version it was 2x faster than Nginx and and 30x faster than Python's SimpleHttpServer.

    [1] https://github.com/DataDog/glommio/blob/master/examples/hype...

  • How much reason is there to be multi-threaded in the k8s environment
    2 projects | /r/scala | 4 Jul 2023
    b) It's proven now e.g Seastar, Glommio that the fastest way to run a multi-threaded application is to have one instance with one thread pinned per CPU core. Then to have fibers/lightweight threads on top handling all of the asynchronous code. Your approach of lots of instances is the slowest so there will be a ton of unnecessary thread context-switching.
  • Why does Actix-web's handler not require Send?
    3 projects | /r/rust | 18 Jun 2023
    I assume Tokio itself, see e.g monoio or glommio, but also Seastar for C++.
  • How does async Rust work
    6 projects | /r/rust | 27 Apr 2023
    https://github.com/DataDog/glommio Rust thread per core library.
  • Use io_uring for network I/O
    11 projects | news.ycombinator.com | 12 Apr 2023
    > Few of us have really figured out io_uring. But that doesn't mean it is slower.

    seastar.io is a high level framework that I believe has "figured out" io_uring, with additional caveats the framework imposes (which is honestly freeing).

    Additionally the rust equivalent: https://github.com/DataDog/glommio

  • Is async runtime (Tokio) overhead significant for a "real-time" video stream server?
    5 projects | /r/rust | 8 Mar 2023
    This use case is perfect for https://github.com/DataDog/glommio which is a thread-per-core runtime that is appropriate for latency sensitive code.
  • Blessed.rs – An unofficial guide to the Rust ecosystem
    8 projects | news.ycombinator.com | 7 Nov 2022
    It's worth mentioning: Under "Async Executors", for "io_uring" there is only "Glommio"

    I recently found out that ByteDance has a competitor library which supposedly has better performance:

    https://github.com/bytedance/monoio

    https://github.com/DataDog/glommio/issues/554

  • Building a High-Performance DB Buffer Pool in Zig W\ Io_uring New Fixed-Buffers
    4 projects | news.ycombinator.com | 15 Oct 2022
    FYI, Datadog has a Rust library for scheduling things to run thread-per-core with io_uring

    It'd be really useful for DB use cases:

    https://github.com/DataDog/glommio

What are some alternatives?

When comparing ZIO and glommio you can also consider the following projects:

cats-effect - The pure asynchronous runtime for Scala

tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

Monix - Asynchronous, Reactive Programming for Scala and Scala.js.

tokio-uring - An io_uring backed runtime for Rust

Http4s - A minimal, idiomatic Scala interface for HTTP

Seastar - High performance server-side application framework

Vert.x - Vert.x is a tool-kit for building reactive applications on the JVM

monoio - Rust async runtime based on io-uring.

cats - Lightweight, modular, and extensible library for functional programming.

MIO - Metal I/O library for Rust.

fs2-kafka - Functional Kafka Streams for Scala

actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.