Use aws lambda

Status

Accepted

Context

This is a legacy adr, we have already made this decision.

Decision

Use Lambda as our primary compute method instead of elastic beanstalk.

Consequences

Pros

  • Lambda allows us to focus on code without worry as much about infrastructure

  • Easy integration with other aws services like sqs, api gateway, eventbridge

  • Ease of scaling during spikes and scheduled jobs

Cons

  • More vendor lock-in

  • Cold start time

  • Cost can be prohibitive at a certain amount of traffic

  • Local testing can be complicated