
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
simple-queue-service
Advanced tools
Simple interface to amazon's simple queue service
npm install simple-queue-service
var sqs = require('simple-queue-service');
var client = sqs('SQS_ACCESS_KEY', 'SQS_SECRET_KEY', 'SQS_REGION');
var queue = client.createQueue('my-queue');
queue.send({foo: 'bar'});
queue.nextMessage()
.then(function (res) {
console.log(res.body.foo);
res.delete();
});
All time spans can be passed either as a number of seconds, or any string accepted by ms (e.g. '1 minute' => 60 seconds or '2 minutes' => 120 seconds)
Creates a new client for the amazon simple queue service. SQS_REGION will default to 'us-east-1'. The regions translate as follows
'us-east-1' => Virginia
'us-west-1' => N. California
'us-west-2' => Oregon
'eu-west-1' => Ireland
'ap-southeast-1' => Singapore
'ap-northeast-1' => Tokyo
You can if you prefer set any of the three arguments by simply setting an environment variable of the same name (and arguments passed in will override any environment variables).
Arguments:
'1kb' => 1024 bytesReturns:
This method imediately returns a new Queue object. If something goes wrong with creating the queue, this resulting queue will 'throw' errors when you try and post/recieve messages to/from it.
The result is also a promise, which allows you to wait until it's fully initialized if you prefer.
Arguments:
Returns:
The same as for createQueue except that in the case you provide the full id, it won't be a promise.
Arguments:
Returns:
A promise for an Array of Queue objects. They are never promises.
You can use Client.Queue(name, 'SQS_ACCESS_KEY', 'SQS_SECRET_KEY', 'SQS_REGION') as an alternative to Client('SQS_ACCESS_KEY', 'SQS_SECRET_KEY', 'SQS_REGION').getQueue(name).
This also provides access to the prototype of Queue.
The name of the queue (not the full identifier).
Puts a message into the queue
Arguments:
Gets the next message from the queue. If there are no available messages, this method will keep polling until there is a message.
Arguments:
Returns:
A promise for a Message object.
Gets up to 'max' messages from the queue. It will return an empty array [] if there are no messages, rather than continuing to poll.
Arguments:
Returns:
A promise for an array of Message objects.
Encapsulates a message retrieved from the queue, along with its metadata.
The parsed JSON body of the message.
The ID of the message sender.
A Date object for when the message was sent.
A Date object for when the message was first received (aproximate).
The aproximate number of times this message has been received (you probably want to give up if that number's unusually high).
You MUST call this once you're done, so the message does not get re-delivered. Returns a promise to indicate success.
Reset the visibilityTimeout to a new value. Returns a promise to indicate success.
FAQs
Simple interface to amazon's simple queue service
The npm package simple-queue-service receives a total of 5 weekly downloads. As such, simple-queue-service popularity was classified as not popular.
We found that simple-queue-service 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.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.