Learn free amazon tutorials

How do you fake sqs in NODEJS

February 15, 2023 ·  1 min read

Amazon SQS is a queue service for produce and consume message in any applications. Some times, During development, You want to test messages for Amazon SQS. Fake SQS Nodejs Example First screate a node project npm init -y Create a index.js file and below lines of code Import fake-sqs and aws-sdk into the file const SQSServer = require('fake-sqs') const AWS = require('aws-sdk') Create a Fake SQS server with ports and optional hosts const server = new SQSServer(opts) port: can be zero or any custom port given bootstrap() method...

You'll get a notification every time a post gets published here.