Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nsqio/libnsq
async C client library for NSQ
https://github.com/nsqio/libnsq
c client-library nsq
Last synced: 12 days ago
JSON representation
async C client library for NSQ
- Host: GitHub
- URL: https://github.com/nsqio/libnsq
- Owner: nsqio
- License: mit
- Created: 2012-11-17T14:15:47.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-06-21T19:07:31.000Z (over 4 years ago)
- Last Synced: 2024-07-31T22:56:15.472Z (3 months ago)
- Topics: c, client-library, nsq
- Language: C
- Homepage:
- Size: 70.3 KB
- Stars: 79
- Watchers: 9
- Forks: 45
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## libnsq
async C client library for [NSQ][1]
### Status
This is currently pretty low-level, but functional. The raw building blocks for communicating
asynchronously via the NSQ TCP protocol are in place as well as a basic "reader" abstraction that facilitates
subscribing and receiving messages via callback.TODO:
* maintaining `RDY` count automatically
* feature negotiation
* better abstractions for responding to messages in your handlers### Build
`libnsq` depends on `json-c` by default, but you can choose `jansson` for replacement.
```sh
WITH_JANSSON=1 make
```### Dependencies
* [libev][2]
* [libevbuffsock][3]
* [json-c][4] or [jansson][5][1]: https://github.com/bitly/nsq
[2]: http://software.schmorp.de/pkg/libev
[3]: https://github.com/mreiferson/libevbuffsock
[4]: https://github.com/json-c/json-c
[5]: http://www.digip.org/jansson/