
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
mongo-to-sqs
Advanced tools
Send a large number of MongoDB documents to an AWS SQS queue.
npm i mongo-to-sqs
const MongoToSqs = require('mongo-to-sqs');
const loader = new MongoToSqs({
cursor, // db.collection.find()
sqs, // new AWS.SQS()
queueUrl, // the url of the SQS queue
formatPayload, // sync function to transform the document into the SQS MessageBody
concurrency // number of concurrent SQS requests (default: 2500)
});
loader.start().then(() => console.log('Done.'));
const MongoDB = require('mongodb');
const AWS = require('aws-sdk');
const MongoToSqs = require('mongo-to-sqs');
MongoDB.MongoClient.connect().then(db => {
const cursor = db.collection('my-collection').find();
const sqs = new AWS.SQS({
accessKeyId: '...',
secretAccessKey: '...'
});
const loader = new MongoToSqs({
cursor,
sqs,
queueUrl: 'https://sqs.us-east-1.amazonaws.com/000000000000/my-queue'
});
loader.start().then(() => console.log('Done.'));
});
MIT
FAQs
Send MongoDB documents to SQS
We found that mongo-to-sqs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.