JDistributer Demo
Project description
JDistributer
消息队列载体:Redis-Cluster
支持功能:
- REQ消息体包含
- 生成时间戳
- 生成机器
- body
- RPLY消息体包含
- REQ/RSP生成时间戳
- REQ/RSP生成机器
- RPLY生成时间戳
- RPLY生成机器
- 状态
- 消息
- RSP消息提包含
- REQ生成时间戳
- REQ生成机器
- RSP生成时间戳
- RSP生成机器
- 状态
- 消息
- 生产者生成消息,接受反馈
一个主题理论上会创建多个redis主题:
- JD_REQ_{主题} 组消费模式
- JD_REQ_RPLY_{主题} 广播消费模式
- JD_RSP_{主题} 广播消费模式
生产者产生消息:
enum RequestStatus{
REQUEST_SENDED,
REQUEST_REPLIED,
SUCCESS,
FAILED
};
class ProductStatus{
public:
RequestStatus status;
std::string message;
};
using ProductStatusPtr = std::shared_ptr<ProductStatus>;
ProductStatusPtr async_product(Message, OnSuccessFunc, OnFailedFunc);
class RequestStatus(Enum):
REQUEST_SENDED,
REQUEST_REPLIED,
SUCCESS,
FAILED
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
jdistributer-0.0.2.tar.gz
(7.2 kB
view details)
Built Distribution
File details
Details for the file jdistributer-0.0.2.tar.gz
.
File metadata
- Download URL: jdistributer-0.0.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb74af38ed2e00e84199f85804464632574cf874c4418e287ee49147902d534f |
|
MD5 | 60cad5571c2743522fb70f48fa85d5c2 |
|
BLAKE2b-256 | ecf48fae22f00c500f4b813e42c35fdedc54c994c123d5e61501ead50d0b5090 |
File details
Details for the file JDistributer-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: JDistributer-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa0916e7e52f70709a28f37fbe3992d0f293ff65e47ab2f95d3aa8cdfc8e3ec |
|
MD5 | 8181e6250f02918f459be443e1cedc7e |
|
BLAKE2b-256 | 689447dfdbc0075249a62e3faa4e1dde4c0c8e8e4517ae167940fc8ca7efbe52 |