https://github.com/sneako/queue_consumer
Small and simple Elixir lib to process messages from a queue via GenStage ConsumerSupervisor
https://github.com/sneako/queue_consumer
elixir genstage sqs
Last synced: 8 months ago
JSON representation
Small and simple Elixir lib to process messages from a queue via GenStage ConsumerSupervisor
- Host: GitHub
- URL: https://github.com/sneako/queue_consumer
- Owner: sneako
- Created: 2018-12-15T23:08:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-19T08:14:02.000Z (almost 7 years ago)
- Last Synced: 2025-01-06T17:46:38.024Z (over 1 year ago)
- Topics: elixir, genstage, sqs
- Language: Elixir
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Note:
This was written before https://github.com/plataformatec/broadway existed. You should probably look at that now.
# QueueConsumer
[](https://travis-ci.org/sneako/queue_consumer)
[](https://coveralls.io/github/sneako/queue_consumer?branch=master)
Quick and easy way to consume a message queue. Sets up a [GenStage](https://github.com/elixir-lang/gen_stage) Producer with
a ConsumerSupervisor. All you need to do is implement the `QueueConsumer.Processor` behaviour, and pass in your configuration.
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `queue_consumer` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:queue_consumer, "~> 0.1.0"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/queue_consumer](https://hexdocs.pm/queue_consumer).