https://github.com/raphexion/kiks
Small help library in Erlang / RabbitMQ
https://github.com/raphexion/kiks
erlang rabbitmq
Last synced: about 1 year ago
JSON representation
Small help library in Erlang / RabbitMQ
- Host: GitHub
- URL: https://github.com/raphexion/kiks
- Owner: Raphexion
- License: apache-2.0
- Created: 2018-08-28T10:56:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T12:21:26.000Z (about 7 years ago)
- Last Synced: 2025-04-01T20:47:19.605Z (about 1 year ago)
- Topics: erlang, rabbitmq
- Language: Erlang
- Size: 176 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kiks
[](https://travis-ci.org/Raphexion/kiks)
[](https://codecov.io/gh/Raphexion/kiks?branch=master)
Small help library in Erlang to work with RabbitMQ.
## Prerequisites
```
docker run -d --rm -p 5672:5672 -p 15672:15672 rabbitmq:3.7-management
```
## Gettings started
```
application:ensure_all_started(kiks).
```
## Example usage
```
application:ensure_all_started(kiks).
{ok, Pid1} = minimal_consumer:start_link("pid1", 0.5).
{ok, Pid2} = minimal_consumer:start_link("pid2", 0.5).
{ok, C1} = kiks_consumer_sup:add_child("e", "q", <<"a.b.*">>, minimal_consumer, Pid1).
{ok, C2} = kiks_consumer_sup:add_child("e", "q", <<"a.b.*">>, minimal_consumer, Pid2).
{ok, Q1} = kiks_queue:start_link("e", "", "#").
{ok, Q2} = kiks_queue:start_link("e", "", "#").
{ok, P1} = kiks_producer_sup:add_child("e").
[kiks_producer:send(P1, <>, <<"a.b.c">>) || X <- lists:seq(1, 100)].
```