The concept Moving to AWS is not a design
We are moving everything to AWS says nothing about which services to use, or whether migration is needed at all. Start from Apex's requirements: API integrations, background payment processing, scheduled settlement ingestion, transactional storage, file storage, monitoring, secure access, recovery and auditability.
Compute Lambda, ECS or EKS?
| Service | Consider it when |
|---|---|
| AWS Lambda | Processing is event-driven, runs within the platform's time limits, is intermittent or bursty, and operational simplicity matters |
| Amazon ECS | The application is containerized, needs long-running workers or more runtime control, without managing Kubernetes |
| Amazon EKS | Kubernetes capabilities are required, the organization has platform expertise and standards, and the workload justifies the complexity |
Messaging SQS, EventBridge or Kinesis?
| Service | What it is | Ordering, retention and replay |
|---|---|---|
| Amazon SQS Standard | A work queue: each message is processed by one consumer, at least once, so a message can arrive twice | Best-effort ordering only. Messages are kept up to 14 days (4 by default) and are gone once deleted, so there is no replay |
| Amazon SQS FIFO | A work queue that keeps order within a message group and drops repeats sent within a five-minute deduplication window | Strict order per message group, such as one loan. Lower throughput limits than Standard unless high-throughput mode is turned on. Same retention, no replay |
| Amazon EventBridge | An event router: rules send each event to one or more targets. It is not a work queue; put an SQS queue behind it when work must be buffered and retried | No ordering guarantee. Events can be archived and replayed from the archive if you set one up |
| Amazon Kinesis Data Streams | A stream that several consumers read independently, each at its own position | Ordered within a shard; the partition key, such as a loan ID, decides the shard. Kept 24 hours by default, up to 365 days, and consumers can replay from any retained position |
They overlap but are not interchangeable. Compare ordering, retention, replay, throughput, consumer behavior, delivery semantics, operational support and cost. None of them prevents a duplicate financial effect on its own: FIFO deduplication only covers five minutes, and every option can deliver a message more than once in some failure case. Idempotent processing is still the consumer's job.
Trade-offs What else to weigh
- Managed services versus self-managed infrastructure.
- Serverless versus containers.
- One region versus several regions.
- Public versus private networking.
- Encryption and key management; identity and access control.
- Backup, recovery and monitoring.
- Cost and usage patterns; vendor dependency; the team's operational expertise.
Practice Choose the compute
Practical exercise
Three workers, three choices
Pick Lambda, ECS or EKS for each worker and say why.
- A function that validates each settlement file when it lands in storage, finishing in seconds.
- A worker that processes payment events continuously all day.
- A platform team already running 40 services on Kubernetes asks to host the new reconciliation service.
Show sample answers
- File validation: Lambda; short, event-driven and intermittent.
- Continuous worker: ECS; long-running containers without Kubernetes overhead.
- Existing Kubernetes estate: EKS may now be justified, because the expertise and standards already exist.
3 questions
Check your understanding
What you can do now
- Map workload needs to candidate AWS services.
- Choose between Lambda, ECS and EKS.
- Choose between SQS, EventBridge and Kinesis.
- Question migrations that lack a reason.