Long polling


Kie leverage gossip protocol to broad cast cluster events. if client use query parameter “?wait=5s” to poll key value, this polling will become long polling and if there is key value change events, server will response key values to client.

kie must join to a cluster and listen to peer events

start first node

./kie --name=kie0 --listen-peer-addr=

start another node

./kie --name=kie1 --listen-peer-addr= --peer-addr=

event payload and trigger condition

condition: key value put or delete


  "Key": "timeout",
  "Action": "put",
  "Labels": {
    "app": "default",
    "service": "order"
  "DomainID": "default",
  "Project": "default"