as we can see on the picture 1.4M calls to the payment-lambda
a lot of messages on the DLQ
post mortem needed here
post mortem
what happend
eventPattern: {
source: [{ prefix: '' }],
},
with the bug in the code - we were generating the UserCreated event in the code instead of use the Outbox Pattern with DynamoDB with lambda lambda-created-user-event-publisher and
record.eventName == 'INSERT'
with works perfectly. There is only one event in the system.
So, with these two bugs - we made a circuit execution - so generating UserCreated and processing as CreateUser we generated a lot of events:
the execution drama!
payment-lambda
post mortem
what happend
with the bug in the code - we were generating the
UserCreated
event in the code instead of use the Outbox Pattern with DynamoDB with lambdalambda-created-user-event-publisher
andwith works perfectly. There is only one event in the system. So, with these two bugs - we made a circuit execution - so generating
UserCreated
and processing asCreateUser
we generated a lot of events:when noticed
how noticed
Lumigo dashboard and email alerts
how stopped
removed stack ;) can disable the rule
cost
how to prevent this situation in the future