Skip to content

aws-samples/decoupling-microservices-lambda-amazonmq-rabbitmq

Decoupling microservices with Amazonmq MQ for RabbitMQ and AWS Lambda

This project is a solution architecture that demonstrates decoupling microservices with Amazonmq MQ for RabbitMQ and AWS Lambda. A decoupled application architecture allows each component to perform its tasks independentlyand a change in one service shouldn't require a change in the other services.

Architecture

MQ-Lambda Architecture diagram

Setup

Clone this repository on the local machine

$ git clone https://<repo URL>

Then run the setup script. This will deploy CloudFormation stack in your AWS account.

$ cd decoupling-microservices-lambda-amazonmq
$ bash setup.sh

Test

Test the solution by copying the API Gateway URL from the CloudFormation stack output and using that in the below cURL command

curl --location --request POST '<API Gateway URL>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "UpdateId":"1"
}'

Clean up

You can clean up the resources to avoid being charged for the resources being deployed as part of this solution.

$ bash cleanup.sh

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published