Hi,I am building an
application with a
local SQLite database and a
remote PostgreSQL server using
Ktor and
Exposed. While the basic CRUD operations and authentication are working well, I am struggling to implement the
synchronization between the
local and
server databases. I've encountered many
race conditions and
bugs, and the
synchronization logic is becoming
messy. Could anyone recommend a
design pattern or
architecture specifically for handling
client-server data synchronization?
Here the file for more context: asyncManagerImp