AWS retail messaging and task workflows
I implemented messaging, task updates, role-based access and queued notifications within a team-built AWS retail backend.
My Role
Backend engineer within a wider team
My contribution
Across the retail backend, I built 20+ independently deployable Lambda functions and distributed shared Python business logic through AWS CodeArtifact. My workflow contributions included role-based access and notifications. Delivery of the wider platform was a team responsibility.
Problem
Retail teams needed messaging, task updates and notifications across their operational workflows.
The problem
Notification failures should be handled separately from the API request that triggered the work. Database access and retries also need to account for concurrent handlers.
Implementation and engineering decisions
Move notification work behind a queue
The Challenge
Synchronous notification calls couple an API request to downstream notification processing.
My implementation
I implemented notification workflows using Lambda, API Gateway, SQS and SNS.
API handling and queued notification attempts are separate parts of the workflow.
Distribute shared business logic
The Challenge
Independently deployable handlers still need common Python business rules.
My implementation
I distributed shared Python packages through AWS CodeArtifact for use across the retail backend.
Handlers can consume common business logic while retaining separate deployment boundaries.
Implement role-based access
The Challenge
Retail workflow operations need permissions appropriate to each user role.
My implementation
I implemented role-based access within the backend workflows.
Access checks apply to the operations exposed by those workflows.
Technology
Backend
- Python
- AWS Lambda
- API Gateway
- Role-based access
Messaging
- Amazon SQS
- Amazon SNS
Delivery
- AWS CodeArtifact
- Shared Python packages
- CI/CD
Evidence and availability
Historical team contribution. I no longer have access to the systems described here. Confidential source code, private screenshots and operational data are not shared.