Giter VIP home page Giter VIP logo

sqs-request's Introduction

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.

sqs-request's People

Contributors

marcusyoda avatar dependabot[bot] avatar

Stargazers

Evandro Gardolin avatar  avatar Aldo Wanderley Costa Junior  avatar

Watchers

 avatar

sqs-request's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.