Templates / sequenceDiagram
API gateway rate limiting
A gateway checking a request against a rate limiter before forwarding to the backend, with a 429 branch.
Preview
Mermaid 11 renderer
Rendering preview...
Mermaid source
sequenceDiagram
sequenceDiagram
participant Client
participant Gateway as API gateway
participant Limiter as Rate limiter
participant Service as Backend service
Client->>Gateway: Request
Gateway->>Limiter: Check quota
alt Within limit
Limiter-->>Gateway: Allowed
Gateway->>Service: Forward request
Service-->>Gateway: Response
Gateway-->>Client: 200 OK
else Over limit
Limiter-->>Gateway: Denied
Gateway-->>Client: 429 Too Many Requests
endMore templates
flowchartArchitecture
Microservices architecture
A service map with an API gateway, core services, and shared infrastructure. A solid starting point for README architecture sections.
sequenceDiagramProcess
User login sequence
A login flow with token issuance and a failure branch. Useful for documenting auth endpoints and session behavior.
stateDiagram-v2Process
Order state machine
Lifecycle states for an e-commerce order, from creation to fulfillment, with cancellation and refund paths.