| Crates.io | entidb_sync_server |
| lib.rs | entidb_sync_server |
| version | 2.0.0-alpha.3 |
| created_at | 2025-12-25 14:53:05.254565+00 |
| updated_at | 2026-01-03 03:38:54.138876+00 |
| description | Reference HTTP sync server for EntiDB |
| homepage | |
| repository | https://github.com/Tembocs/entidb |
| max_upload_size | |
| id | 2004629 |
| size | 67,017 |
Reference HTTP sync server for EntiDB.
This crate provides a reference implementation of the EntiDB sync server. It uses EntiDB core for persistence (no external database) and implements the pull/push protocol over HTTP with CBOR encoding.
POST /pull - Retrieve operations since client cursorPOST /push - Submit local operations for server processingThe sync server is authoritative for conflict resolution. When concurrent modifications are detected, the server's policy determines the winner.
use entidb_sync_server::SyncServer;
let server = SyncServer::new(database, config);
server.run("0.0.0.0:8080").await?;
Licensed under either of Apache License, Version 2.0 or MIT license at your option.