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.3.0.tar.gz (19.7 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.3.0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplebroker_redis-2.3.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simplebroker_redis-2.3.0.tar.gz
Algorithm Hash digest
SHA256 7da4fc627b45dfff4abf8c19e6f681dc9d36f4c14fd2c22bdf2f1b75d2dae4c4
MD5 ffea3cdf43b2358c523afd4fafbd0a88
BLAKE2b-256 6a6ac629472f21a9c1d382e5a7ea753afb1868d5ec14e04251e75ee6f6d704f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simplebroker_redis-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simplebroker_redis-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e47da886265fa6d30768602dbf353c68a2791aa0d4fd3f44770a93d1cc8f2fca
MD5 ab84236bfb1dee7d7c05f66d62cd9464
BLAKE2b-256 c1ed032677e094f2b2da62e5756018c134d813728a3c4dee3bf9ca7d835cba05

See more details on using hashes here.

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