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
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Here is the sequence of events that occur when a developer registers an API with Nitric, including the registration of routes, security, and middleware.
92
+
93
+
```mermaid
94
+
sequenceDiagram
95
+
participant Worker as App Worker(s)
96
+
participant SDK as Nitric SDK
97
+
participant Nitric as Nitric CLI
98
+
participant Provider as Nitric Provider
99
+
participant IAC as IaC
100
+
101
+
Worker->>SDK: Register API(s)
102
+
SDK->>Nitric: Register API(s)
103
+
104
+
opt Authentication
105
+
Worker->>SDK: Register Security
106
+
SDK->>Nitric: Register Security
107
+
end
108
+
109
+
Worker->>SDK: Register Route Callback(s)
110
+
SDK->>Nitric: Register Route(s)
111
+
Worker->>SDK: Register Middleware(s)
112
+
113
+
Nitric->>Nitric: Generate OpenAPI Spec
114
+
Nitric->>Provider: Forward Nitric Spec
115
+
Provider->>IAC: Provision API Gateway
116
+
```
117
+
118
+
### Runtime Sequence
119
+
120
+
Here is the sequence of events that occur at runtime when a client makes an HTTP request to an API registered and deployed using Nitric.
121
+
89
122
```mermaid
90
123
sequenceDiagram
91
-
participant Client as Client
92
-
participant NitricSDK as Nitric SDK
93
-
participant NitricRuntime as Nitric Runtime
94
-
participant APIGateway as API Gateway
95
-
participant Worker as App Worker
96
-
97
-
Client->>NitricSDK: Send HTTP API request
98
-
NitricSDK->>NitricRuntime: Forward API request
99
-
NitricRuntime->>APIGateway: Register API routes (during deployment)
0 commit comments