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.
Below is a sequence diagram showing the sequence of events that occur when a developer registers a bucket with Nitric. Including, optionally registering event handlers for file change events.
91
+
88
92
```mermaid
89
93
sequenceDiagram
90
-
participant Client as Client
91
-
participant NitricSDK as Nitric SDK
92
-
participant NitricRuntime as Nitric Runtime
93
-
participant CloudStorage as Cloud Storage (e.g., S3, GCS)
CloudStorage-->>NitricRuntime: Return result (e.g., data or success status)
101
-
NitricRuntime-->>NitricSDK: Return result
102
-
NitricSDK-->>Client: Return result to client
103
-
else Failure
104
-
CloudStorage-->>NitricRuntime: Return error
105
-
NitricRuntime-->>NitricSDK: Forward error
106
-
NitricSDK-->>Client: Return error response
94
+
participant Worker as App Worker(s)
95
+
participant SDK as Nitric SDK
96
+
participant Nitric as Nitric CLI
97
+
participant Provider as Nitric Provider
98
+
participant IAC as IaC
99
+
100
+
Worker->>SDK: Register Bucket
101
+
SDK->>Nitric: Register Bucket
102
+
103
+
opt Notifications
104
+
Worker->>SDK: Register Event Callback
105
+
SDK->>Nitric: Register Event Handler
106
+
end
107
+
108
+
Nitric->>Provider: Forward Nitric Spec
109
+
Provider->>IAC: Provision Bucket
110
+
111
+
opt Notifications
112
+
Provider->>IAC: Provision Event Rule(s)
107
113
end
108
114
```
109
115
116
+
### Runtime Sequence
117
+
118
+
Below is a sequence diagram showing the runtime flow of a storage operation in a Nitric application, using the Nitric SDK. The SDK forwards the request to the Nitric runtime, which converts the request and forwards it to the cloud storage API. The plugin nature of the Nitric runtime allows for seamless integration with different cloud providers.
0 commit comments