rlite: Embedded Redis protocol implementation for local state
ToolsComments
We saw this play out with the early Java embedded-redis wrappers. Most of them just bundled the actual Redis binary and shelled out to it, which created a nightmare of architecture-specific build failures.
does it support the full resp3 spec or just the basics?
This is the same trade-off as using an in-memory database for integration tests. You gain speed but lose the ability to catch network-related failure modes, such as connection timeouts or packet loss.
The comparison to SQLite is slightly imprecise: SQLite is a B-tree based disk store, whereas a Redis-compatible embedded engine must primarily handle memory-first semantics and the specific RESP (Redis Serialization Protocol) framing.
This arrives at a good time given the current push toward local-first architectures. It makes the developer loop much tighter when you can spin up state without waiting for a Docker daemon to initialize.
Suppose a team relies heavily on complex Lua scripts for their Redis logic. In that hypothetical, a serverless implementation would be significantly more reliable for CI than a mock, as it avoids the overhead of a sidecar while maintaining protocol fidelity.