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.4.1.tar.gz (20.1 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.4.1-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplebroker_redis-2.4.1.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for simplebroker_redis-2.4.1.tar.gz
Algorithm Hash digest
SHA256 5801535856531224d178575b0cda50fb5ccc7fed8eb25756d5276543212404cc
MD5 2657ebfad138fb8215636c175442a212
BLAKE2b-256 9a6ffe79c0b7de416d68950045a36e90b210d425da24963f1fff90549d21f8cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simplebroker_redis-2.4.1-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for simplebroker_redis-2.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00aeda76c2f1b4592a564f9c7321a60bd311c4030f610d74ca78657258bbfc89
MD5 4154b0bf271e72384bb100fbd99ce714
BLAKE2b-256 3c633435b872b9c5c1866046135e96f38af3fc43a7f852c40e9fcfd7bc9425ad

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