onyx-commander-example
所属分类:collect
开发工具:Clojure
文件大小:0KB
下载次数:0
上传日期:2017-03-31 04:06:52
上 传 者:
sh-1993
说明: 卡夫卡、玛瑙和达托米克的指挥官图案示例。,
(An example of the Commander pattern with Kafka, Onyx , and Datomic.,)
文件列表:
LICENSE (1080, 2017-03-30)
docker-compose.yml (320, 2017-03-30)
project.clj (1440, 2017-03-30)
resources/ (0, 2017-03-30)
resources/dev-config.edn (654, 2017-03-30)
src/ (0, 2017-03-30)
src/onyx_commander_example/ (0, 2017-03-30)
src/onyx_commander_example/commander.clj (2460, 2017-03-30)
src/onyx_commander_example/datomic.clj (579, 2017-03-30)
src/onyx_commander_example/impl.clj (5521, 2017-03-30)
src/onyx_commander_example/spec/ (0, 2017-03-30)
src/onyx_commander_example/spec/base_specs.clj (572, 2017-03-30)
src/onyx_commander_example/spec/command_specs.clj (1259, 2017-03-30)
src/onyx_commander_example/spec/domain_specs.clj (242, 2017-03-30)
src/onyx_commander_example/spec/event_specs.clj (1291, 2017-03-30)
test/ (0, 2017-03-30)
test/onyx_commander_example/ (0, 2017-03-30)
test/onyx_commander_example/jobs/ (0, 2017-03-30)
test/onyx_commander_example/jobs/commander_test.clj (6024, 2017-03-30)
# onyx-commander-example
This project is an example of using the [Commander pattern](https://www.youtube.com/watch?v=B1-gS0oEtYc) with Onyx.
We read commands from a Kafka topic, process them with Onyx, and produce materialized views using Datomic.
Commands generate read-receipts named events, which are fed back into Kafka to provide a point of synchronicity
for the initial caller of a command.
### Usage
- Spin up ZooKeeper and Kafka with Docker compose: `docker-compose up`
- Open the test under `onyx-commander-example/test/onyx_commander_example/jobs/commander_test.clj`
- If your Docker IP isn't `127.0.0.1`, change the ZooKeeper and Kafka hosts at the top of the file
- Run the test with `lein test`
### Acknowledgments
Distributed Masonry would like to thank Day8 for funding this example.
### License
Copyright 2017 Distributed Masonry
Distributed under the Eclipse Public License, the same as Clojure.
近期下载者:
相关文件:
收藏者: