qmetrics.net

redislock

Go distributed locking client for Redis

DatabasesDesktop/CLI app

redislock is a Go package that acquires, refreshes, and releases distributed locks through Redis. It documents fencing tokens and application-owned lock renewal patterns.

Overview

redislock offers a simplified distributed locking implementation backed by Redis for Go programs. It is intended for coordinating exclusive work across processes or services that share a Redis instance.

Optional fencing tokens can be requested via a fence key so each lock acquisition returns a monotonically increasing value you can attach to writes at the protected resource. The library mints tokens, but enforcing stale-token rejection remains the resource’s responsibility. On Redis Cluster, fence and lock keys must share a hash slot.

The package does not ship a background watchdog to extend TTLs automatically. Long-held locks expect your application to run a ticker that calls Refresh on an interval roughly one third of the TTL, handle Refresh errors such as loss of ownership, and call Release when work completes.

Documentation points to examples for typical usage and discusses trade-offs of token monotonicity across Redis failovers.

Key features

  • Redis-backed distributed locks
  • Optional fencing tokens
  • Lock refresh for long work
  • Explicit release by caller
  • Documented ErrNotObtained handling
  • Cluster hash-tag guidance
  • No bundled watchdog goroutine
  • GoDoc reference material

Use cases

  • Single-writer job coordination
  • Cron overlap prevention
  • Leader election style exclusivity
  • Fenced writes after lock loss
  • Cross-service critical sections

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

★ 67.9k⟳ yesterdayApache-2.0
Open Source Alternative to:PRTG Network Monitor

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

★ 65.6k⟳ todaySource-available
DatabasesSelf-hostable

etcd

Raft-backed distributed consistent key-value store

etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.

★ 52.7k⟳ 3 days agoApache-2.0
DatabasesSelf-hostable

DBeaver

Universal multi-platform database tool and SQL client

Free desktop client for developers and DBAs with SQL editing, data editing, ER diagrams, exports, and support for hundreds of JDBC or ODBC databases.

★ 52.6k⟳ todayApache-2.0
DatabasesDesktop/CLI app
Open Source Alternative to:DataGripNavicat+2

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

★ 51.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon Redshift