You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.md
+27-8Lines changed: 27 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,17 @@
3
3
## Overview
4
4
Raw is a Rust-native web server framework focused on ergonomic routing, middleware, and extensibility while retaining strong performance and explicit control. The framework targets building HTTP services and web applications with minimal boilerplate and a clear, composable API.
5
5
6
+
## Unique Infrastructure Need
7
+
Rust server teams building multi-tenant services often struggle with predictable latency under load. Existing frameworks tend to leave admission control to external proxies or bespoke middleware. Raw addresses this gap with built-in, per-route admission control designed for fairness, frugality, and explicit resource budgeting.
8
+
9
+
## Mohist Design Principles
10
+
Raw adopts Mohist principles as engineering constraints:
11
+
-**Universal benefit**: fairness across routes and tenants by default.
12
+
-**Frugality**: minimal overhead, no hidden allocations.
13
+
-**Merit and clarity**: explicit policies for cost and concurrency.
14
+
-**Non-aggression**: shed load early to protect system health.
15
+
-**Plain design**: simple primitives over implicit magic.
16
+
6
17
## Goals
7
18
- Provide a production-ready HTTP framework with a clean, opinionated core.
8
19
- Offer fast request routing, middleware composition, and structured responses.
@@ -39,6 +50,11 @@ Raw is a Rust-native web server framework focused on ergonomic routing, middlewa
39
50
- Koa-style middleware chain using async handlers.
0 commit comments