Skip to content
Discussion options

You must be logged in to vote

You are right that CRDB will always attempt to publish events in order. The reason that you can see an ordering like 1,2,1,3 is that retries are not guaranteed to occur on the same TCP connection as the original request so the original request may be delayed somewhere between crdb and the receiver.

Consider this ordering:

request 1 - {version: 1} - stalls in the http load balancer
changefeed restarts for some reason (e.g. vm crashed, network partition, etc.)
request 2 - {version: 1} - delivered to destination
request 3 - {version: 2} - delivered to destination
request 4 - {version: 3} - delivered to destination
request 1 - {version: 1} - finally forwarded by http load balancer, observed o…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeffswenson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants