tsoracle is a distributed timestamp oracle service written in Rust that provides strictly increasing integer timestamps for ordering events across distributed systems. It can be run as a standalone server or embedded directly into Rust applications. The system guarantees that every timestamp issued is greater than all previous ones, even when servers crash or leadership changes. It includes sophisticated testing infrastructure that verifies this correctness under simulated chaos (server kills, network partitions, failpoints). The project is well-documented, actively maintained, and published on crates.io with an Apache 2.0 license.
How It Works
You're building a database or distributed application and need a reliable way to assign unique, increasing numbers to events happening on different machines.
You either run the standalone server with one simple command, or embed it directly into your Rust project with just a few lines of code.
The server begins listening for requests. For important applications, you can run multiple servers that work together as a cluster to survive failures.
Your application asks the server for unique numbers. The server guarantees that every number you receive is larger than every number given before — no duplicates, no regressions.
If a server crashes or leadership changes, the system uses a special 'failover fence' mechanism that ensures timestamps remain strictly ordered even during chaos.
You now have a trustworthy way to sequence events across your entire system. Audit logs, database transactions, and data streams all use the same consistent ordering.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.