Skip to content

Commit

Permalink
fixup: lifecycle summary
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <[email protected]>
  • Loading branch information
toddbaert committed Oct 28, 2024
1 parent f9a7a15 commit 78cf14f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/reference/specifications/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ The lifecycle is summarized below:
- for RPC providers, flags resolved with `reason=STATIC` are [cached](#caching)
- if flags change the associated stream (event or sync) indicates flags have changed, flush cache, or update `flag set` rules respectively and emit `PROVIDER_CONFIGURATION_CHANGED`
- if stream disconnects:
- attempt to [reconnect](#stream-reconnection) silently immediately
- if initial reconnect succeeds, do nothing
- if initial reconnect fails:
- [reconnect](#stream-reconnection) with backoff
- if reconnect attempt > `retryGraceAttempts`
- emit `PROVIDER_ERROR`
- RPC providers invalidate cache
- reconnect with backoff
- if reconnect attempt <= `retryGraceAttempts`
- emit `PROVIDER_STALE`
- RPC mode resolves `STALE` from cache where possible
- in-process mode resolves `STALE` from stored `flag set` rules
- on stream reconnection:
- emit `PROVIDER_READY` and `PROVIDER_CONFIGURATION_CHANGED`
- in-process providers store the latest `flag set` rules
Expand Down

0 comments on commit 78cf14f

Please sign in to comment.