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

Tokio Alternatives

Similar projects and alternatives to tokio

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better tokio alternative or higher similarity.

tokio reviews and mentions

Posts with mentions or reviews of tokio. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-27.
  • Rusty Ownership and the Lifecycle’s Stone
    2 projects | | 27 Nov 2022
    Well, the blog examples are quite trivial.

    Take a look at the standard hashmap implementation ( Notice the lifetime annotations everywhere. This is a relatively basic data structure, but it has a ton of visual noise due to the constraints of the lifetime and borrow model, and programmers must know, understand and be able to reason about these constraints when using this data structure.

    Now imagine a case where you need to operate on values with two (or more) different lifetimes (by definition, all must live at least as long as the one with smallest lifetime, but in practice they all can and will have different lifetimes). Now you have `'a` and `'b` (and perhaps more) everywhere *and* developers must now reason about that. (random example pulled from a popular networking crate:

    It isn't trivial to pick up from scratch, especially if one comes from a much higher level language (C#, Java, python, etc.). This is true even for people who are very experienced writing high-quality, durable, and safe code in other languages (e.g., C++) without the help of a compiler, because the ownership and lifetime model are both different and compiler-enforced.

  • Implement grpc client in rust language for openresty/Nginx
    5 projects | | 26 Nov 2022
    tonic is my favourite rust library. It's based on hyper and tokio. Everything works in async/await way.
  • The only thing I'm always struggling to understand is the documentation on
    7 projects | | 4 Nov 2022
    Now, some projects include tutorial-style documentation, but you wouldn't find it on, it would be in some other place. Maybe in a Git repo there would be examples, or some projects have books and even large sites (like… but that's not reference documentation.
  • Rethinking Virtualization for Backends
    6 projects | | 27 Oct 2022
    After all, a major culprit of these long build and deploy times in the real world is the large number of heavy dependencies of even simple projects. There's not much you can do about this: most services have a pretty big runtime that includes heavy machinery like an asynchronous executor (e.g. tokio), a web server (e.g. hyper), database drivers (e.g. sqlx) and more. And on every deploy you need to re-build them and hope artifact caches are hit in order to get an incremental build. And it's not just building either, the running time of tests is also impacted by this. The closure of the codebase you're engaging in those tests is very large indeed as it follows that of your dependencies.
  • Rust for web development: 3 years later
    11 projects | | 26 Oct 2022
    Rust will make you a better programmer: Rust is complicated and won't leave you alone if you don't understand how it works in detail. It takes time and patience to master, but once you do, you'll have learned so many things that you'll never approach programming as before. I understood how Go's runtime works while learning how tokio works.
  • Rust vs Go
    9 projects | | 19 Oct 2022
  • The Stigma Around Unsafe
    5 projects | | 12 Oct 2022
    "damn good reason" is subjective. Is this a damn good reason? Why not just use a Mutex? What about this?. Context matters.
  • Looking for Tokio's event loop source code
    4 projects | | 11 Oct 2022
  • What's a good backend framework for beginners to start with?
    3 projects | | 10 Oct 2022
    From what I've seen over the past year or so on this subreddit, people are pretty big fans of actix-web. However, axum, a new-ish framework made by tokio (the most popular async framework) has been hugely popular. I've seen a lot of people say they prefer it over actix-web.
  • Bizarre memory leak caused by tokio runtime
    4 projects | | 8 Sep 2022
    This link specifically has more info on why the memory could creep up when you spawn a lot of tasks.
  • A note from our sponsor - InfluxDB | 1 Dec 2022
    InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code. Learn more →


Basic tokio repo stats
about 11 hours ago
Truly a developer’s best friend
Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.