Files
wlan-cloud-ucentralsec/docs/design/kafka_topics.md
stephb9959 36093d3e54 initial
2021-06-28 23:45:50 -07:00

1001 B

Kafka topics for micro-services.

Here are some of the topics going on the kafka bus to maintain the microservice architecture

service_events topic

Payload

Service joins the stack

Upon starting up, a service needs to send this message.

{
  "event" : "join",
  "id" : 1,
  "type" : "ucentral/security/firmware/prov/topology/other",
  "endPoint" : "https://endpoint.com:16001",
  "key" : "access-key",
  "version": "1.0.0"
}

Service leaves the stack

Upon going down, a service should send this notice.

{
  "event" : "leave",
  "id" : 1,
  "type" : "ucentral/security/firmware/prov/topology/other",
  "endPoint" : "https://endpoint.com:16001",
  "key" : "access-key",
  "version": "1.0.0"
}

Service heartbeat

Sent every minute by all services.

{
  "event" : "keep-alive",
  "id" : 1,
  "type" : "ucentral/security/firmware/prov/topology/other",
  "endPoint" : "https://endpoint.com:16001",
  "key" : "access-key",
  "version": "1.0.0"
}