Our application uses a global async singleton database connection pool pattern based on tokio::sync::OnceCell for efficient, safe, and manageable database access.
- User Guide17
- Directions for use14
- Sea-ORM14
- Digging Deeper11
- Basics8
- Architecture Concepts4
- API2
- Security2
- Help1
- News1
- Sponsor1
- tutorial1
2024/10/30About 1 min
Prelude Pre-import Pattern
To improve development efficiency, reduce boilerplate code, and unify code style, our project extensively uses the Prelude pattern. You'll find a prelude.rs file under both model and service modules.
2024/10/30About 1 min
UserInfo Extractor
UserInfo is the core tool for handling user identity verification in our application. It's not just a simple data structure but a powerful Axum Extractor.
2024/10/30About 1 min
Global Unique ID Generator (GID)
When building distributed systems, generating globally unique, trend-increasing, and high-performance IDs is a core requirement. We've implemented a global unique ID generator based on the Twitter Snowflake algorithm, accessible via the simple async function GID().
2024/10/30About 1 min