Class ParallelWithWaitExample

All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler

Example demonstrating parallel branches where some branches include wait operations.

This models a notification fan-out pattern where different channels have different delivery delays:

  • Email — sent immediately
  • SMS — waits for a rate-limit window before sending
  • Push notification — waits for a quiet-hours window before sending

All three branches run concurrently. Branches with waits suspend without consuming compute resources and resume automatically once the wait elapses. The parallel operation completes once all branches finish.