← AWS MESSAGING CASE STUDY

FIELD NOTE / CLOUD ENGINEERING

Two paths through a
serverless messaging prototype.

A request sent now and a request scheduled for later need different orchestration. This is how I separated them in an AWS learning project.

DAVIDSON BRIONES20263 MIN READ

Start with the timing.

The public lab exposes two forms: one requests an immediate email; the other requests a one-time message at a later time. Both need input validation and a confirmed Amazon SNS subscription. The scheduled path also needs a durable trigger that can wait until the chosen time.

I kept those paths separate so each Lambda function and IAM role can have a clear responsibility. The site is an educational prototype, not a production messaging service.

02 / REQUEST FLOWS

The service handoffs.

A / SEND NOW

Immediate request

  1. Amplify-hosted formCollects and validates the request before submission.
  2. API Gateway HTTP APIHands the request to the immediate Lambda function.
  3. Lambda → SNSThe function validates the payload and publishes to the configured topic.
  4. Confirmed subscriberSNS delivers only after the recipient confirms the subscription.
B / SEND LATER

One-time schedule

  1. Amplify-hosted formCollects the message and a time within the Asia/Manila delivery window.
  2. API Gateway → LambdaThe scheduling function validates the request and creates a one-time schedule.
  3. EventBridge SchedulerInvokes the delivery function at the requested time.
  4. Lambda → SNSThe delivery function publishes to the confirmed subscriber.

IAM scopes each function to its workflow. CloudWatch Logs provide execution details for troubleshooting; they are not a public delivery record.

The decisions that matter.

Use a scheduler for waiting

A future send should not depend on a browser remaining open or a Lambda invocation sleeping. EventBridge Scheduler owns the wait and triggers a separate delivery function.

Keep permissions narrow

The immediate path needs to publish to SNS. The scheduling path needs to create schedules, and the scheduled delivery path needs to publish. These are separate operational duties.

Explain the delivery boundary

Submitting a form is not the same as confirmed email delivery. SNS requires subscription confirmation, and errors need to be read from the execution path.

What can be reviewed today.

The deployed lab ↗ shows both request forms and the public architecture explanation. The case study ↗ records my contribution and a screenshot of the interface.

The public artifacts do not yet include redacted CloudWatch traces or a test report proving completed delivery for both paths. My next step is to publish those artifacts and automate validation tests, especially scheduling edge cases.