Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unbounce/messenger-listeners-sqs
A messenger listener that polls SQS
https://github.com/unbounce/messenger-listeners-sqs
core-services tier-5
Last synced: about 1 month ago
JSON representation
A messenger listener that polls SQS
- Host: GitHub
- URL: https://github.com/unbounce/messenger-listeners-sqs
- Owner: unbounce
- License: mit
- Created: 2013-10-17T18:25:51.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T12:18:59.000Z (over 1 year ago)
- Last Synced: 2024-03-26T15:21:36.147Z (9 months ago)
- Topics: core-services, tier-5
- Language: Ruby
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 55
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Messenger SQS Listener
The [Messenger](https://github.com/unbounce/messenger) SQS Listener polls SQS for messages
and passes them to the active worker.## Installation
Add this line to your application's Gemfile:
```Ruby
gem 'messenger-listeners-sqs', git: '[email protected]:unbounce/messenger-listeners-sqs.git'
```And then execute:
```
$ bundle
```### Configuration
You must set which listener and worker the messenger will use. To create a configuration
file in your application, run `rails g messenger-listeners-sqs:install`. Set the appropriate
queue url and any other options.```Ruby
# Example config/initializers/messenger-listeners-sqs.rbMessenger::Listeners::Sqs.configure do |config|
config.queue_url = 'https://some-sqs-queue-url'
# config.batch_size = 10
# config.visibility_timeout = 10
# config.wait_time = 20
end
```Your messenger must also be set to use this listener, so in `config/initializers/messenger.rb`
set `config.listener_type = :sqs`.## Usage
See [Messenger's README](https://github.com/unbounce/messenger/blob/master/README.md).