awsrun/aws-microservices
关于
使用 AWS Lambda、AWS DynamoDB、AWS API Gateway、AWS EventBridge、AWS SQS 和 AWS CDK(Cloud Development Kit)构建无服务器、事件驱动的 AWS 微服务。AWS CDK 是用于基础设施即代码(IaC)的工具,AWS CloudWatch 用于监控。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Serverless Event-driven E-commerce Microservices
UDEMY COURSE WITH DISCOUNTED - Step by Step Development of this Repository -> https://www.udemy.com/course/aws-serverless-microservices-lambda-eventbridge-sqs-apigateway/?couponCode=FEBR26

This is a Serverless Event-driven E-commerce project for TypeScript development with CDK.
The cdk.json file tells the CDK Toolkit how to execute your app.
Check Explanation of this Repository on Medium
- AWS Event-driven Serverless Microservices using AWS Lambda, API Gateway, EventBridge, SQS, DynamoDB and CDK for IaC
- See All Articles - AWS Serverless Microservices with Patterns & Best Practices
Whats Including In This Repository
We will be following the reference architecture above which is a real-world Serverless E-commerce application and it includes;
- REST API and CRUD endpoints with using AWS Lambda, API Gateway
- Data persistence with using AWS DynamoDB
- Decouple microservices with events using Amazon EventBridge
- Message Queues for cross-service communication using AWS SQS
- Cloud stack development with IaC using AWS CloudFormation and AWS CDK
Prerequisites
You will need the following tools:
- AWS Account and User
- AWS CLI
- NodeJS
- AWS CDK Toolkit
- Docker
Run The Project
Follow these steps to get your development environment set up: (Before Run Start the Docker Desktop)
- Clone the repository
- At the root directory which include cdk.json files, run below command:
cdk deploy
Note: Make sure that your Docker Desktop is running before execute the cdk deploy command.
Wait for provision all microservices into aws cloud. That’s it!
You can launch microservices as below urls:
- Product API -> https://xxx.execute-api.ap-southeast-1.amazonaws.com/prod/product
- Basket API -> https://xxx.execute-api.ap-southeast-1.amazonaws.com/prod/basket
- Ordering API -> https://xxx.execute-api.ap-southeast-1.amazonaws.com/prod/order
Useful commands
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template
Authors
- Mehmet Ozkaya - Initial work - mehmetozkaya
See also the list of contributors who participated in this project. Check also gihtub page of repository.
探索相关项目
加载中…