File size: 602 Bytes
26e6f31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@startuml
'https://plantuml.com/sequence-diagram

participant Client
participant Lambda
participant "Persistence layer"


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-->x Lambda:Run Lambda handler (event). Raises Exception.
Lambda->"Persistence layer":Delete record (id=event.search(payload))
deactivate "Persistence layer"
Client<--Lambda:Return error response

@enduml