@emmvish/stable-infra 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2538,7 +2538,7 @@ await stableApiGateway<ServiceRequest, ServiceResponse>(requests, {
|
|
|
2538
2538
|
});
|
|
2539
2539
|
```
|
|
2540
2540
|
|
|
2541
|
-
###
|
|
2541
|
+
### 5. Define Metrics Guardrails for SLA Monitoring
|
|
2542
2542
|
|
|
2543
2543
|
Enforce performance and reliability SLAs with automatic validation.
|
|
2544
2544
|
|
|
@@ -2602,7 +2602,7 @@ await stableApiGateway<ApiRequest, ApiResponse>(requests, {
|
|
|
2602
2602
|
});
|
|
2603
2603
|
```
|
|
2604
2604
|
|
|
2605
|
-
###
|
|
2605
|
+
### 7. Use Shared Buffers for Cross-Phase Coordination
|
|
2606
2606
|
|
|
2607
2607
|
Avoid global state; pass computed data cleanly.
|
|
2608
2608
|
|
|
@@ -2617,7 +2617,7 @@ await stableWorkflow(phases, {
|
|
|
2617
2617
|
});
|
|
2618
2618
|
```
|
|
2619
2619
|
|
|
2620
|
-
###
|
|
2620
|
+
### 8. Log Selectively with Max Serialization Cap
|
|
2621
2621
|
|
|
2622
2622
|
Prevent noisy logs from large payloads.
|
|
2623
2623
|
|
|
@@ -2635,7 +2635,7 @@ await stableRequest<DataRequest, DataResponse>({
|
|
|
2635
2635
|
});
|
|
2636
2636
|
```
|
|
2637
2637
|
|
|
2638
|
-
###
|
|
2638
|
+
### 9. Use Non-Linear Workflows for Polling
|
|
2639
2639
|
|
|
2640
2640
|
REPLAY action simplifies polling logic.
|
|
2641
2641
|
|
|
@@ -2670,7 +2670,7 @@ await stableWorkflow(phases, {
|
|
|
2670
2670
|
});
|
|
2671
2671
|
```
|
|
2672
2672
|
|
|
2673
|
-
###
|
|
2673
|
+
### 10. Use Graph Workflows for Complex Parallelism
|
|
2674
2674
|
|
|
2675
2675
|
DAGs make dependencies explicit and enable maximum parallelism.
|
|
2676
2676
|
|
|
@@ -2686,7 +2686,7 @@ const graph = new WorkflowGraphBuilder()
|
|
|
2686
2686
|
await stableWorkflowGraph(graph);
|
|
2687
2687
|
```
|
|
2688
2688
|
|
|
2689
|
-
###
|
|
2689
|
+
### 11. Prefer Dry-Run (Trial Mode) Before Production
|
|
2690
2690
|
|
|
2691
2691
|
Test workflows and retry logic safely.
|
|
2692
2692
|
|
package/package.json
CHANGED