actix-web
tonic

actix-web | tonic | |
---|---|---|
180 | 48 | |
22,422 | 10,483 | |
1.7% | 2.5% | |
9.2 | 9.6 | |
7 days ago | 6 days ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
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.
actix-web
-
Rusty Backends
To find answers, we wanted to get our hands dirty with three popular Rust web frameworks including rocket, axum, and actix, and get a feeling for their performance, features, and most importantly the developer experience.
- Show HN: PDF2MD – Rust+Redis+ClickHouse+VLLM conversion pipeline for PDFs
-
Actix Web - The Rust Framework for Web Development - Hello World
Actix Web site: https://actix.rs/
-
A recap about the Zentrox development
So, what framework do I use? Zentrox uses the actix_web framework which is a great library. My DevExp. with this tool was nice. It has good documentation and powerful tools. It was easy to implement for me as I was previously using Express.JS and Flask (Python). Actix also has other helper libraries for files, cookies, sessions,... which I use in my project as well.
-
Show HN: Hosting my website using my own C web server
Not to compare but i realice this is something you can do with rust with few lines
https://github.com/actix/actix-web/tree/master/actix-http
-
Understanding AML/KYC: a light primer for engineers
APIs are often the key to enabling interoperability between AML/KYC solutions and other systems. Design APIs following RESTful principles—using libraries like ExpressJs (JavaScript), Flask (Python), or Actix Web (Rust)—ensuring they are stateless and support the JSON/XML formats expected by most systems. Use Swagger to generate detailed documentation for RESTful APIs to facilitate integration and ensure your APIs are easily consumable by other systems. If you’re building GraphQL APIs, using tools like Apollo Server, Prisma, or Graphene will allow for self-documenting APIs (through GraphQL introspection).
- Actix-Web: v4.8.0
- Actix-Web: v4.6.0
-
Empowering Web Privacy with Rust: Building a Decentralized Identity Management System
Actix Web Documentation: Detailed documentation on using Actix-web, including examples and best practices for building web applications with Rust.
-
Ntex: Powerful, pragmatic, fast framework for composable networking services
I can't speak to the "is it any good" part, but (after a bit of research) I can share what I've found. I'll try to represent things as best as I understand, but I may have some finer details mixed up.
ntex is written by the same person that started actix-web, Nikolay Kim (fafhrd91 on GitHub). There was a bunch of drama a while back due to actix-web using (what many reasoned to be) avoidable unsafe code, which was later found to be buggy. Nikolay was pilloried online, resulting in him transferring leadership of actix-web to someone else. ntex is, as I understand it, essentially Nikolay picking back up on his ideals for what could have been actix-web, if people hadn't pushed him out of his own project.
How ntex compares to the pre-/post-leadership change of actix-web, I don't know.
Here are some jumping points if you want more of the backstory.
https://www.theregister.com/2020/01/21/rust_actix_web_framew...
https://steveklabnik.com/writing/a-sad-day-for-rust
https://github.com/actix/actix-web/issues/1289
tonic
-
Roll your own auth with Rust and Protobuf
Use tonic-build directly from Rust.
-
How to limit different concurrency number by service on Tonic?
} // Omit the remaining code and refer to the example in Tonic: https://github.com/hyperium/tonic/blob/master/examples/src/multiplex/server.rs ```
-
Ideas/Suggestions around setting up a data pipeline from scratch
If I’m not misunderstanding, you could both decode the gRPC protobuf AND write to delta lake in Rust. Tonic, Delta-rs.
-
Throughput doesn't increase with cores/threads count
Original post: https://github.com/hyperium/tonic/issues/1405. Cross-post here in case the problem is not specific to tonic.
-
Getting started with gRPC in Rust
Tonic
-
libp2p alternate
Just to double check Is this the correct repo?
-
Spaceman: A gRPC client from another world. Comes both as a CLI and as a GUI built with Tauri and Yew.rs
Wasm isn't involved much actually. Basically, the frontend asks the backend to perform a gRPC call on its behalf using Tauri events. They are like named channels on which you can send any serde-compatible value. But the backend is a normal Rust program so there are no constraints there. I use prost-reflect to encode/decode Protobuf messages according to Protobuf descriptors loaded at runtime and make the actual requests using tonic from the tokio ecosystem. prost-reflect is necessary because, normally, tonic expects the Protobuf descriptor to be known at compile time so it can make some code generation behind the scenes.
-
Is there something like Feathersjs for Rust?
You could have a look at gRPC i.e. https://github.com/hyperium/tonic
-
Tower - middleware or interceptor
Looking at this example code: https://github.com/hyperium/tonic/blob/master/examples/src/tower/server.rs
-
Keyword Generics Progress Report: February 2023 | Inside Rust Blog
The remaining gap is remote actors, since you still need some kind of serialization between them, and take your pick of standards for that one such as gRPC using Tonic.
What are some alternatives?
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
tarpc - An RPC framework for Rust with a focus on ease of use.
Rocket - A web framework for Rust.
ntex - framework for composable networking services
prost - PROST! a Protocol Buffers implementation for the Rust Language
Tide - Fast and friendly HTTP server framework for async Rust
grpc-rust - Rust implementation of gRPC
salvo - A powerful web framework built with a simplified design.
rust-prometheus - Prometheus instrumentation library for Rust applications
Rouille, Rust web server middleware - Web framework in Rust
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
