amazon-kinesis-client/docs/plantuml/lease-shard-sync-initialization.puml
stair 51a62a559c
Added doc for leases and the lease lifecycle. (#1218)
* Added doc for leases and the lease lifecycle.

* Documentation: addressed comments for leases.
+ minor code cleanup
* Documentation: language review.
+ decomposed shard sync UML into two separate diagrams (initialization, loop)
* Documentation: language review touch-ups.
2023-11-10 14:56:15 -05:00

23 lines
610 B
Text

@startuml
'https://plantuml.com/sequence-diagram
autonumber
title KCL Shard Syncing Initialization (Abridged)
participant Scheduler as S
participant LeaseCoordinator as LC
participant PeriodShardSyncManager as PSS
participant "Lease Table\n(DynamoDB)" as DDB
alt on initialization
S->S: create PeriodicShardSyncManager(\n ..., leaseRefresher, leasesRecoveryAuditorExecutionFrequencyMillis, ...)
S->LC: initialize()
opt if lease table does not exist
LC->DDB: create lease table
end
S->PSS: start()
PSS->PSS: schedule self every\n leasesRecoveryAuditorExecutionFrequencyMillis
end
@enduml