Skip to main content

Valkey/Redis backend extension for SimpleBroker

Project description

simplebroker-redis

Valkey/Redis backend extension for SimpleBroker.

This package exposes the public SimpleBroker backend name redis. It targets Valkey 7.x and Redis 7.x and the test suite runs against Valkey.

Requirements

  • Python 3.11+
  • Valkey 7.x or Redis 7.x

Durability depends on the server configuration. A Valkey or Redis deployment without AOF/RDB persistence can lose messages on restart. Use SQLite or Postgres when you need storage durability from the broker stack by default.

Regular broker commands use a redis-py BlockingConnectionPool owned by the process-local Redis runner. Pub/Sub wake hints use a separate dedicated connection because subscribed Redis connections cannot serve normal commands.

Pool defaults:

  • max_connections = 50
  • pool_timeout = BROKER_BUSY_TIMEOUT / 1000

The defaults can be overridden in project backend options:

[backend_options]
namespace = "simplebroker_redis_v1"
max_connections = 50
pool_timeout = 5.0

Pool exhaustion is bounded by pool_timeout and surfaces as an operational error from broker operations.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplebroker_redis-2.6.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simplebroker_redis-2.6.0-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file simplebroker_redis-2.6.0.tar.gz.

File metadata

  • Download URL: simplebroker_redis-2.6.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for simplebroker_redis-2.6.0.tar.gz
Algorithm Hash digest
SHA256 4a55e30f21dddf30e1526cea6b0190d7f5d62acb45c4c1bd61ab1e2be7698f78
MD5 bc931d1e7f3a59fc11923e45663eff35
BLAKE2b-256 579662ee78cb2e7f1a381ed79a48de7d9835b34ba7d49b47c00ae8047c106259

See more details on using hashes here.

Provenance

The following attestation bundles were made for simplebroker_redis-2.6.0.tar.gz:

Publisher: release-gate-redis.yml on VanL/simplebroker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file simplebroker_redis-2.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for simplebroker_redis-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47924cc468b57030ab32129c5020f748343da27fd6e4d9037444200a5c8624d7
MD5 595d56d85cd8d2aac7b89ff6c7e43508
BLAKE2b-256 40df6f1466de27144c55f9198b54a2ad59d6b1d07f04ea952eeee4f317480b39

See more details on using hashes here.

Provenance

The following attestation bundles were made for simplebroker_redis-2.6.0-py3-none-any.whl:

Publisher: release-gate-redis.yml on VanL/simplebroker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page