npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sqs-request

v2.1.3

Published

A docker image to build a SQS queue listener. Written in TypeScript, made to use with docker.

Downloads

14

Readme

image

sqs-request

A docker image to build a SQS queue listener. Written in TypeScript, made to use with docker. SQS queue processor with node, ts-squiss, which processes each message as a request.

GitHub package.json version Libraries.io dependency status for latest release, scoped npm package npm GitHub Repo stars GitHub issues

TECHNOLOGY:

LINUX WINDOWS DOCKER TYPESCRIPT JAVASCRIPT NODE

WHO SHOULD USE:

Any developer who needs to process a queue at SQS, very well configurable.

READY TO USE:

https://hub.docker.com/r/marcusyoda/sqs-request

GETTING STARTED:

To use you need to build with docker...

docker build -t marcusyoda/sqs-request .

...and then configure as your preference:

It's a docker image, so you're expected to run on your infrastructure consuming an Amazon SQS queue.
The settings are made via environment:

|ENV-VAR | DEFAULT | REQUIRED | DESCRIPTION | |----------------------|--------------|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |AWS_ACCESS_KEY_ID | | YES | Amazon login KEY data. |AWS_SECRET_ACCESS_KEY | | YES | Amazon login SECRET data. |SQS_REGION | | YES | The queue region in SQS. |SQS_QUEUE_NAME | | YES | The name of the queue in SQS. |MAX_IN_FLIGHT | 100 | NO | The number of messages to keep "in-flight", or processing simultaneously. When this cap is reached, no more messages will be polled until currently in-flight messages are marked as deleted or handled. Setting this option to 0 will uncap your inFlight messages, pulling and delivering messages as long as there are messages to pull. | |BATCH_SIZE | 10 | NO | The number of messages to receive at one time. Maximum 10 or maxInFlight, whichever is lower. | |POOL_INTERVAL_MS | 0 | NO | The number of milliseconds to wait between requesting batches of messages when the queue is not empty, and the maxInFlight cap has not been hit. For most use cases, it's better to leave this at 0 and let Squiss manage the active polling frequency according to maxInFlight. | |DELAY_SECS | 0 | NO | The number of milliseconds by which to delay the delivery of new messages into the queue by default. | |DELETE_BATCH_SIZE | 10 | NO | The number of messages to delete at one time. Squiss will trigger a batch delete when this limit is reached, or when deleteWaitMs milliseconds have passed since the first queued delete in the batch; whichever comes first. Set to 1 to make all deletes immediate. Maximum 10. | |DELETE_WAIT_MS | 2000 | NO | The number of milliseconds to wait after the first queued message deletion before deleting the message(s) from SQS. | |IDLE_POLL_INTERVAL_MS | 0 | NO | The number of milliseconds to wait before requesting a batch of messages when the queue was empty on the prior request. | |AWS_ENDPOINT | | NO |

AUTHOR

Marcus Yoda @marcusyoda
Prototype development, final version and testing.

VERSIONING

Versioning SemVer.
To view the available versions, look at: tags on this repository.

DEPENDENDENCIES:

  • Proudly, running with no dependencies.

LICENSE:

Developed by Marcus Yoda, during javascript research and study.