Midge 0.7.0 packages an embedded Rust database with transaction and recovery interfaces
The Rust distribution documents ordered scans, backups and recovery for an embedded key-value engine.
A data engine inside an application
cntryl-midge 0.7.0 reached the Rust package registry at 02:39:19 on November 29 in Istanbul. Docs.rs records the release separately. The archive describes an embedded key-value engine built around a log-structured merge tree. Its public interface includes transactions, ordered scans, backup and recovery. An application can use the engine without necessarily making each operation a call to a separate database server. The storage and application versions still belong in any evidence about a result.
A lookup and an ordered scan are different checks
An inventory application may look up one device and separately list keys that share a prefix. Verify the value returned for the individual key and the boundaries of the scan. The documentation describes column families. An application can retain which family a record is stored in when a similar key appears elsewhere. A fixture with several nearby keys can show which ones are returned and which fall outside the requested range.
Foreground writes and background work
The project says its runtime coordinates writes, compaction and recovery. A device can accept a new record while background file organization continues. The time seen by a caller and the amount of storage activity are different measurements. Keep them separate when comparing results. A smaller number of storage files after compaction should not be treated as a smaller number of application records. Check the values independently.
Restore a known state
A fixture can write three device records and back them up. Change one record and restore to a separate copy. Confirm that the copy contains the expected earlier value and the same ordered key range. Retain the backup identifier and expected restore point with the result. The archive provides evidence of the exposed interfaces, with no timed recovery test claimed here. A full recovery assessment also depends on the application's storage environment.
Record the storage conditions
Keep the library and application versions together with the storage configuration, backup identity and expected dataset. These make a repeated restore easier to assess. An observed latency belongs to the workload and hardware on which it was measured. No performance claim follows from the release record alone. The solid-state drive photograph illustrates storage hardware and is unrelated to a Midge benchmark.
Check the edges of the key range
An application can include the first matching key and the first nonmatching key in its fixture. Preserve the expected byte ordering and test it independently from the displayed labels. Repeat the test after deleting or rewriting a key to see how the visible state changes at a new transaction boundary. Include a prefix with no matches. Then run the same range against a restored copy and compare the complete ordered output, not only the first item.
Photo · Dmitry Nosachev / Wikimedia Commons. Resized and converted to WebP. ↗ · CC BY-SA 4.0
Sources and verification
- Primary sourcecrates.io ↗
- Technical documentDocs.rs ↗
- Reporting / cross-checkDocs.rs — build ↗
Reader discussion
What would you change first for maintainability and testing in your own project?
No comments yet. Be the first to contribute.
Write a comment