---
title: "Discussion on \"Building tokio-events: How I Routed 2 Million Events/Sec in Rust Without Locks\" | Hashnode"
description: "Discussion on \"Building tokio-events: How I Routed 2 Million Events/Sec in Rust Without Locks\". Learn how I replaced RwLock with arc-swap to build tokio-events, a zero-lock enterprise event bus in Rust capable of routing 2 million events/sec."
url: "https://hashnode.com/posts/building-tokio-events-lock-free-rust/6a274326c10d074e400f73f5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building tokio-events: How I Routed 2 Million Events/Sec in Rust Without Locks](https://tokio-events.hashnode.dev/building-tokio-events-lock-free-rust?utm_source=hashnode&utm_medium=feed)

Learn how I replaced RwLock with arc-swap to build tokio-events, a zero-lock enterprise event bus in Rust capable of routing 2 million events/sec.

Jun 8 · 5 min read · tokio-events.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#event-driven-architecture](https://hashnode.com/tag/event-driven-architecture)
-   [#pub-sub](https://hashnode.com/tag/pub-sub)
-   [#microservices](https://hashnode.com/tag/microservices)
-   [#opensource](https://hashnode.com/tag/opensource)

## Written by

[Abhishek](https://hashnode.com/@abhiyana)

@abhiyana · Pune, India

  
[View profile](https://hashnode.com/@abhiyana)

Fighting the borrow checker so you don't have to. | Creator of tokio-events

Abhishek here! 🌍💻 Just a peaceful guy who likes writing lock-free Rust code and traveling the world. I built tokio-events so my servers can process millions of events while I'm off hiking somewhere quiet. Welcome to my blog!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
