The handler does its work before answering
How you'll know: The Customer Area shows your endpoint failing, and events start arriving late or in bursts.
Fix: Adyen waits 10 seconds for a 2xx reply. Miss it and every event for that endpoint goes into a retry queue. Store the event, reply at once, then process it from a queue of your own.