Closed matrixbot closed 2 weeks ago
This comment was originally posted by @erikjohnston at https://github.com/matrix-org/dendrite/issues/300#issuecomment-335523635.
Persist the results of processing the messages atomically with the offsets
This is probably the better option, but its probably going to be quite faffy to actually code due to having to figure out how to atomically persist things without pushing processing into the database layer and using DB transactions
This comment was originally posted by @neilalexander at https://github.com/matrix-org/dendrite/issues/300#issuecomment-1092640378.
We're NATS now.
This issue was originally created by @erikjohnston at https://github.com/matrix-org/dendrite/issues/300.
Since we only persist the partition offset after we've processed the message it's possible for dendrite services to receive the last message from kafka again if it died at the right/wrong point.
Currently e.g. federation sender doesn't handle this (causing #290)
Two options: