HNHacker News
TopNewBestAskShowJobs

abaelter

1 karma · joined April 27, 2016

submissionscomments
abaelter··on Show HN: LavinMQ, an open-source message broker written in Crystal
I'm Anders, a LavinMQ-core developer.

We send the confirm as soon as the message hits the mmap and is appended to the local replication queue because that keeps publish latency at memory-copy speed, and the loss window is narrow: only messages still in the page cache or sitting in the replication queue when the leader dies. Config options are coming to opt into stronger guarantees (msync on the leader, waiting for follower ack, or follower fsync), at the cost of added latency.