40 lines
1022 B
Clojure
40 lines
1022 B
Clojure
{
|
|
;; Specify which middleware to use, it will default to :chan.
|
|
:middleware :kafka
|
|
|
|
;; If set to true, orchestra will instrument all the spec'ed functions
|
|
:instrument-spec true
|
|
|
|
;; all the kafka configuration goes bellow.
|
|
:kafka
|
|
{:bootstrap.servers #or [#env KAFKA_BOOTSTRAP_SERVERS "localhost:9092"]
|
|
:topics-prefix "skirmish-01-"}
|
|
|
|
;; possible config from http-kit's run-server that will affect the api-server
|
|
:api-server
|
|
{:port #long #or [#env API_SERVER_PORT 1602]
|
|
:ip "0.0.0.0"
|
|
:max-body 524288 ;; 512kb, small but enough
|
|
:max-ws 524288}
|
|
|
|
;; possible config from http-kit's run-server that will affect the api-bookkeeper
|
|
:api-bookkeeper
|
|
{:port #long #or [#env API_SERVER_PORT 1603]
|
|
:ip "0.0.0.0"
|
|
:max-body 524288 ;; 512kb, small but enough
|
|
:max-ws 524288}
|
|
|
|
;; list of tradable securities
|
|
:securities
|
|
[{:sec-id :foo}
|
|
{:sec-id :bar}
|
|
{:sec-id :toto}
|
|
{:sec-id :tata}]
|
|
|
|
;; stupid parameters about benchmarking tools
|
|
:benchmark {
|
|
:number-of-requests-per-securities 30}}
|
|
|
|
|
|
|