This is a fully HTTP based Pub/Sub Broker with a goal to simplify system architecture in SOA or Microservice architecture. It aims to solve the inter service communication problem.
Apache License 2.0
18
stars
25
forks
source link
AR-292: Add POST endpoint for pull based consumer #143
Ticket: AR-292
Description
Add
POST /channel/{channel-id}/consumer/{consumer-id}/job/{job-id}
endpointThe endpoint requires the
X-Broker-Channel-Token
andX-Broker-Consumer-Token
headers and a body of the form:Allowed transitions are:
JobQueued
->JobInflight
JobInflight
->JobDelivered
JobInflight
->JobDead
JobDead
->JobInflight
(this transition increasesjob.RetryAttemptCount
by 1)If the current job status and requested next job status are the same, a
202 Accepted
response will be given with no DB change.All other transitions are invalid and will get a
400 Bad Request
response.