Hiperspace.Rocks
1.2.28
See the version list below for details.
dotnet add package Hiperspace.Rocks --version 1.2.28
NuGet\Install-Package Hiperspace.Rocks -Version 1.2.28
<PackageReference Include="Hiperspace.Rocks" Version="1.2.28" />
paket add Hiperspace.Rocks --version 1.2.28
#r "nuget: Hiperspace.Rocks, 1.2.28"
// Install Hiperspace.Rocks as a Cake Addin #addin nuget:?package=Hiperspace.Rocks&version=1.2.28 // Install Hiperspace.Rocks as a Cake Tool #tool nuget:?package=Hiperspace.Rocks&version=1.2.28
Hiperspace.Rocks
RocksDB is a remarkable technology, originally developed by Google (LevelDB) and optimized by Facebook for
absolutely lowest possible latency writing to SSD devices.
RocksDB used Log-structured-Merge (LSM) to stream updates while maintaining fast key access.
It is used both as a key/value database, and also as a driver for relational-databases, message-stores,
blockchain and various analytical services. The use of LSM optimizes performance and life of SSD devices.
Hiperspace.Rocks uses RockDB to store elements in durable SSD memory
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Hiperspace (>= 1.2.28)
- Microsoft.Bcl.HashCode (>= 1.1.1)
- protobuf-net (>= 3.2.30)
- RocksDB (>= 9.4.0.50294)
- System.Memory (>= 4.5.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
## ConcurentHashSet
The hash map for set spaces has been updated to use concurrent hash map.
This is needed for two scenarios
1. Horizons filter cause additional elements to be loaded in a set space while it is being enumerated.
2. Parallel scan for Node and Edge cause references to be loaded in thread order.
This implementation of Concurent HashSet:
* Provides locking around HashSet functions (using low-contention Spin Locks)
* One or more HashSet segments that are locked for read while enumeration functions are running
* Add / Remove / Replace / UnionAll operations are performed on the next segment to avoid mutation during enumeration
* Any additions made (to next segment) are merged when the last enumeration has completed
* Whole-set functions are deferred until enumerations has completed
## RockSpace disposal
Internally the RocksDB Flush function uses async-io, that under heavy load can complete before pending IO, which blocks disposal of the connection. The RocksSpace driver has been updated to retry disposal to allow async IO to complete
## HiperSpace GetHorizons() function
A common loading scenario is to use a SessionSpace to batch a set of additions to a domain space
```
public void LoadingFunction (DomainSpace domain)
{
using (var session = new SessionSpace (new HeapSpace(), domain, SessionSpace.RollUpSeconds(1))))
using (var loader = new DomainSpace(session))
{
... load actions
}
}
```
The `GetHorizons()` function allows `loader` to apply any domain Horizon filters. This is especially useful in server configurations where role-based access control is applied to the source source transparently to the local function.