梦兽编程
AI_SUITE

[ SECTION / TUTORIALS ]

Tutorials

54 POSTS
01 // TUTORIALS / 2025.08.17 / 4 MIN Rust + Axum Async Microservice Guide: Job Queue, Retries, and Graceful Shutdown Build a production-ready async microservice with Rust and Axum: job queue, background workers, exponential backoff retries, and graceful shutdown. Includes full project … 02 TUTORIALS / 2025.08.14 / 2 MIN Rust + Axum from Zero to Production: Building a High-Performance Web Server A step‑by‑step Axum guide to build a modern high‑performance Web service: routing, path and query parameters, JSON, shared state, and middleware (tracing, CORS) with … 03 // TUTORIALS / 2025.08.13 / 4 MIN Rust unsafe Done Right: 6 Common Misuses and How to Avoid Them Rust's unsafe does not disable safety checks — it hands you the responsibility for 5 kinds of operations. Six runnable examples of common misuses: bypassing the borrow … 04 TUTORIALS / 2025.08.11 / 4 MIN Stop treating tokio::spawn as a thread! I launched 1000 tasks in 2 seconds and the system stayed calm tokio::spawn is not a thread but a lightweight task. Under Tokio's scheduler you build highly concurrent services with sleep, timeout and select — 1000 tasks in 2 seconds … 05 TUTORIALS / 2025.08.10 / 4 MIN Rust Async State Machine, Unmasked: How Future, poll, and Waker Really Work A practical deep dive into Rust async: why calling an async function doesn't run it, how the compiler turns async into a state machine, and how executors drive tasks … 06 TUTORIALS / 2025.08.09 / 2 MIN Rust 1.89: Intel Macs demoted to Tier 2, clearer lifetimes, and new x86 intrinsics Rust 1.89 demotes x86_64-apple-darwin (Intel Mac) from Tier 1 to Tier 2, adds the mismatched_lifetime_syntaxes lint, constant generics '_' inference, and a wave of new … 07 // TUTORIALS / 2025.07.24 / 6 MIN Rust Lifetimes Explained: From 'a Errors to Mastery, Finally Understand the Borrow Checker Still struggling with Rust lifetimes? This article uses a humorous and easy-to-understand approach to help you finally grasp the true meaning of 'a, avoid the 5 most … 08 TUTORIALS / 2025.07.24 / 4 MIN Rust Cluster Commands: Managing Distributed Systems Like Conducting an Orchestra Learn how to implement cluster-level control commands in Rust distributed actor systems, making node management as elegant as conducting a symphony 09 TUTORIALS / 2025.01.27 / 7 MIN Rust Ultimate Guide: 5 Trait & Generic Pitfalls That Will Make Your Colleagues 'Unreachable' Deep dive into 5 common Rust Traits and Generics pitfalls, from generic overuse, trait constraint chaos, static vs dynamic dispatch confusion, associated types usage to … 10 TUTORIALS / 2025.01.26 / 9 MIN When Your Actor Cluster Grows Up, It Needs Sharding How do you manage 100,000 Actors across 10 machines? Let's talk about consistent hashing