(not designed for production use, an old project of mine)
Rift is a library that provides distributed caching, locking, and synchronized map storage using a unified API.
- Distributed Caching: A unified interface supporting various implementations (e.g., AsyncCaffeine, Caffeine, or a simple ConcurrentHashMap).
- Distributed Locking: A fail-safe mechanism using watchers and executors, supporting retries and proper exception handling.
- Cached Map: A synchronized map that leverages local caches combined with a distributed store (similar to Redisson's local cached map).
- RPC and Packet Communication: Asynchronous request/response messaging via a
PacketBrokerusing theCompletableFutureAPI for non-blocking remote procedure calls (RPC).
You can build dependency and append it to your local .m2 directory, by using: ./gradlew publishToMavenLocal
Go to the Rift demo module for complete examples.