File size: 939 Bytes
26e6f31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@startuml
'https://plantuml.com/sequence-diagram

participant Client
participant Lambda
participant "Persistence layer"


group initial request
Client->Lambda:Invoke (event)
Lambda->"Persistence layer":Get or set (id=event.search(payload))
activate "Persistence layer"
note right of "Persistence layer":Locked during this time. Prevents \nmultiple Lambda invocations with the \nsame payload running concurrently.
Lambda-->Lambda:Run Lambda handler (event)
Lambda->"Persistence layer":Update record with Lambda handler result¹
deactivate "Persistence layer"
"Persistence layer"-->"Persistence layer": Update record with result¹
Client x<--Lambda:Response not received by client
end

group retried request

Client->Lambda: Invoke (event)
Lambda->"Persistence layer":Get or set (id=event.search(payload))
Lambda<--"Persistence layer":Already exists in persistence layer. Return result¹
Client<--Lambda:Response sent to client
end

@enduml