Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How about providing the ability to set merge handlers in Lua for different data types / keys?

Or if there are 3 different and well known strategies, somehow let users pick one and set it as a default. If not let users run Lua scripts that will be executed to resolve conflicts in a custom way.

I do this for CouchDB, it has a very convenient changes feed that can also stream conflicts when they appear. So there is a custom (and separate) conflict resolver process that resolves conflicts in an application specific way.

For consistency though you'd need a way to run those synchronously somehow as soon as you detect the conflict.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: