Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raphexion/kiks
Small help library in Erlang / RabbitMQ
https://github.com/raphexion/kiks
erlang rabbitmq
Last synced: 20 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T12:21:26.000Z (over 5 years ago)
- Last Synced: 2024-12-09T03:39:55.754Z (28 days ago)
- Topics: erlang, rabbitmq
- Language: Erlang
- Size: 176 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kiks
[![Build Status](https://travis-ci.org/Raphexion/kiks.svg?branch=master)](https://travis-ci.org/Raphexion/kiks)
[![codecov.io](https://codecov.io/gh/Raphexion/kiks/coverage.svg?branch=master)](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)].
```