logoalt Hacker News

closeparenlast Friday at 6:47 PM2 repliesview on HN

Here's a really simple way to get a cycle.

Service A: publish a notification indicating that some new data is available.

Service B: consume these notifications and call back to service A with queries for the changed data and perhaps surrounding context.

What would you recommend when something like this is desired?


Replies

10000truthslast Friday at 10:15 PM

That's not a cycle - service B isn't writing any new data to A.

9rxlast Friday at 7:00 PM

There is no cycle here.

Service B initiates the connection to Service A in order to receive notifications, and Service B initiates the connection to Service A to query for changed data.

Service A never initiates a connection with Service B. If Service B went offline, Service A would never notice.