A Flask-SQLAlchemy extension for atomically sending messages (signals) over a message bus
Project description
Adds to Flask-SQLAlchemy the capability to atomically send messages (signals) over a message bus.
The processing of each message involves three steps:
The message is recorded in the SQL database as a row in a table.
The message is sent over the message bus (RabbitMQ for example).
Message’s corresponding table row is deleted.
Normally, the sending of the recorded messages (steps 2 and 3) is done automatically after each transaction commit, but when needed, it can also be triggered explicitly with a method call, or through the Flask CLI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Flask-SignalBus-0.5.20.tar.gz
.
File metadata
- Download URL: Flask-SignalBus-0.5.20.tar.gz
- Upload date:
- Size: 33.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16a2851b7126a5b2c4618811f0b658598ca03be86dfb25df7832afa914ecd83e |
|
MD5 | 34497d2b293b3f4f59c5e9f4e492f76f |
|
BLAKE2b-256 | 9e2d1e3b4112ffb7293ed93fa833e9bcf448eb6f3f6873b0e399cc783d4fb5f1 |