About | Technologies | Prerequisites | Running the Project | License
Small example of a message queue-based microservice using Amazon SQS. Frontend is responsible for producing messages in AWS SQS based on the number of images requested in the form.
The Backend (aws-sqs-backend) is in charge of consuming the messages in AWS SQS and generating an image for each message. To generate the images I used an API called Cat as a service (https://cataas.com)
Images are being saved locally within the backend project, next step is to save to Amazon S3 bucket.
AWS.SQS.WITH.NODEJS.mp4
This project was developed with the following technologies:
It is necessary that you create a queue in Amazon SQS and rename the .env-example file to .env and inform the values for the variables below:
Parameter | Type | Description |
---|---|---|
region | String | AWS region (eg. "us-east-1" ) |
accessKeyId | String | IAM Access Key ID |
secretAccessKey | String | IAM Secret Access Key |
sqs url | String | URL Of Your Queue |
# Clone this repository
$ git clone git@github.com:ricellicarvalho/aws-sqs-frontend.git
# Enter the application
$ cd aws-sqs-frontend
# Install dependencies
$ npm install
# Run the command:
$ npm start
Open the browser at the following url to access the application http://localhost:3000
This project is under the ISC license. See file LICENSE for more details.
Made with ❤️ by Ricelli Carvalho