一款轻量级、以 HTTP 为中心、基于日志 (类似 Kafka) 的消息队列。
A lightweight, HTTP-centric, log-based (Kafka-style) message queue.
This is still early software and potentially buggy. To peek at the internals start with BigLog.
While posting and fetching single messages is very inefficient, it's the simplest way to get started using nothing but curl commands.
…# create new topic
curl -XPOST localhost:7200/pubsubdemo
# get scanner ID with jq
export SCANNER=$(curl -s -XPOST "localhost:7200/pubsubdemo/scanner?from=0&persist=true" | jq -r .id)
# subscribe to the topic
while true; do; curl "localhost:7200/pubsubdemo/scan?id=$SCANNER&wait=1h" && echo; done
# IN ANOTHER WINDOW
# publish on the topic
while true; do; read data; curl localhost:7200/pubsubdemo/payload --data-binary $data; done
# write something and hit enter
Contributions are more than welcome, check the contributing guidelines. To ask any questions you can write to the netlog-dev mailing list.
暂无开放 Issues,或尚未同步最近议题。