Tag: Axum
All the articles with the tag "Axum".
-
Hands-On Guide: How to Use MessagePack to Optimize Data Transmission in HTTP Interfaces with Rust
Published date:MessagePack is an efficient binary serialization format. It supports multi-language data exchange. Compared to JSON, it is more compact and faster in processing.
-
Protecting Your API: Quick Start with Rate Limiting in the Rust Axum Framework
Published date:Rate limiting is a critical measure to protect systems from overload, especially when dealing with sudden traffic or malicious attacks. The Leaky Bucket and Token Bucket algorithms are two commonly used rate limiting strategies, each with its own characteristics and application scenarios. GCRA (Generic Cell Rate Algorithm) is an optimized version of the Leaky Bucket algorithm.
-
How to Implement Middleware in the Axum Framework
Published date:One of the unique aspects of axum is that it does not have its own custom middleware system but instead integrates with tower. This means that the tower ecosystem and tower-http middleware work seamlessly with axum.