Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shardkit

Small, dependency-light Go concurrency primitives, extracted from the periapsis control plane.

  • shardutilHash32: FNV-1a + Murmur3 finalizer for selecting a lock-striped shard from a string key. Zero dependencies.
  • focusFocus[V]: a generic, string-keyed, internally-sharded concurrent store (a thin, ergonomic wrapper over xsync.Map): Get/Set/Delete, atomic Update, Take (load-and-delete), Range, Len.
  • workqueueQueue[K] (dedup, per-key-serializing) + Reconciler[K] (worker pool with delayed/back-off requeue, no goroutine-per-key). Pure stdlib.
import (
	"github.com/apsis-io/shardkit/shardutil"
	"github.com/apsis-io/shardkit/focus"
	"github.com/apsis-io/shardkit/workqueue"
)

License

GPL-3.0-or-later. Copyright (C) 2025-2026 Malformed C.

About

Dependency-light Go concurrency primitives (sharded hash, concurrent store, dedup workqueue).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages