SharpCoreDB.Distributed 1.4.1

dotnet add package SharpCoreDB.Distributed --version 1.4.1
                    
NuGet\Install-Package SharpCoreDB.Distributed -Version 1.4.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SharpCoreDB.Distributed" Version="1.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharpCoreDB.Distributed" Version="1.4.1" />
                    
Directory.Packages.props
<PackageReference Include="SharpCoreDB.Distributed" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SharpCoreDB.Distributed --version 1.4.1
                    
#r "nuget: SharpCoreDB.Distributed, 1.4.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SharpCoreDB.Distributed@1.4.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SharpCoreDB.Distributed&version=1.4.1
                    
Install as a Cake Addin
#tool nuget:?package=SharpCoreDB.Distributed&version=1.4.1
                    
Install as a Cake Tool

SharpCoreDB.Distributed

Distributed Database Extension for SharpCoreDB

NuGet License: MIT

Overview

SharpCoreDB.Distributed extends SharpCoreDB with enterprise-scale distributed capabilities:

  • Horizontal Sharding: Distribute data across multiple nodes
  • Replication: Master-slave replication for high availability
  • Backup Strategies: Automated backup and point-in-time recovery
  • Distributed Queries: Cross-shard query execution
  • Load Balancing: Intelligent request routing

Quick Start

using SharpCoreDB.Distributed;

// Configure sharding
var shardConfig = new ShardConfiguration
{
    ShardCount = 4,
    ShardKey = new HashShardKey("UserId"),
    ReplicasPerShard = 2
};

var distributedDb = new DistributedDatabase(shardConfig);

// Create distributed table
await distributedDb.ExecuteAsync(@"
    CREATE TABLE Users (
        UserId INT PRIMARY KEY,
        Name TEXT,
        Email TEXT
    ) SHARDED BY UserId
");

// Data is automatically distributed across shards
await distributedDb.ExecuteAsync(
    "INSERT INTO Users VALUES (1, 'Alice', 'alice@example.com')"
);

Features

Sharding Strategies

  • Hash Sharding: Even distribution using hash functions
  • Range Sharding: Partition by value ranges
  • List Sharding: Explicit shard assignment

Replication

  • Master-Slave: Automatic replication to read replicas
  • Failover: Automatic promotion of healthy replicas
  • Consistency: Configurable consistency levels

Backup & Recovery

  • Incremental Backups: Efficient backup of changes only
  • Point-in-Time Recovery: Restore to any point in time
  • Validation: Automatic backup integrity checking

Distributed Queries

  • Cross-Shard Joins: Join data across shard boundaries
  • Aggregation: Distributed GROUP BY and aggregate functions
  • Transactions: Two-phase commit across shards

Architecture

┌─────────────────┐    ┌─────────────────┐
│   Shard 1       │    │   Shard 2       │
│ ┌─────────────┐ │    │ ┌─────────────┐ │
│ │ Master DB   │ │    │ │ Master DB   │ │
│ │ └───────────┘ │    │ │ └───────────┘ │
│ │ ┌───────────┐ │    │ │ ┌───────────┐ │
│ │ │ Replica   │ │    │ │ │ Replica   │ │
│ │ └───────────┘ │    │ │ └───────────┘ │
│ └─────────────┘ │    │ └─────────────┘ │
└─────────────────┘    └─────────────────┘
         │                       │
         └───────────────────────┘
              Load Balancer

Performance

  • 100+ Shards: Scale horizontally across multiple nodes
  • Sub-second Queries: Cross-shard query performance
  • Zero Downtime: Automatic failover and recovery
  • Minimal Overhead: <1% performance impact for local operations

Use Cases

  • High-Volume Applications: Handle millions of users/transactions
  • Global Services: Distribute data across geographic regions
  • Analytics Platforms: Parallel processing across shards
  • IoT Systems: Scale to handle massive sensor data streams

Documentation

Requirements

  • SharpCoreDB.Core v1.3.5+
  • .NET 10.0+
  • Network connectivity between shard nodes

License

MIT License - see LICENSE for details.

SharpCoreDB.Distributed v1.4.1

Enterprise Distributed Database Features

Multi-master replication, distributed transactions, and automatic sharding - Phase 10 complete with sub-100ms replication latency.

✨ What's New in v1.4.1

  • ✅ Phase 10.2: Multi-master replication with vector clocks
  • ✅ Phase 10.3: Distributed transactions with 2PC protocol
  • ✅ Automatic conflict resolution (Last-Write-Wins, Merge, Custom)
  • ✅ Horizontal sharding with automatic data distribution
  • ✅ <100ms replication latency, 50K writes/sec throughput

🚀 Key Features

  • Multi-Master Replication: Concurrent writes across nodes with vector clocks
  • Distributed Transactions: 2PC protocol for ACID across shards
  • Horizontal Sharding: Automatic data distribution and routing
  • Conflict Resolution: LWW, merge, or custom strategies
  • Failover: <5 second automatic failover
  • Monitoring: Real-time replication health metrics

📊 Performance

  • Replication Latency: <100ms across nodes
  • Throughput: 50K writes/sec across 3 nodes
  • Conflict Resolution: <100μs per conflict
  • Failover Time: <5 seconds

🎯 Use Cases

  • Distributed Applications: Multiple data centers, low-latency access
  • High Availability: Survive node failures transparently
  • Geo-Distribution: Serve users from closest region
  • Multi-Tenant: Shard data by tenant for isolation

📚 Documentation

📦 Installation

dotnet add package SharpCoreDB.Distributed --version 1.4.1

Requires: SharpCoreDB v1.4.1+


Version: 1.4.1 | Status: ✅ Production Ready | Phase: 10 Complete

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.1 71 2/28/2026

v1.4.1: Phase 10.2-10.3 complete - Multi-master replication with vector clocks, distributed transactions with 2PC protocol, automatic conflict resolution. <100ms replication latency, 50K writes/sec throughput, <10s failover time.