Skip to main content

JDistributer Demo

Project description

JDistributer

消息队列载体:Redis-Cluster

支持功能:

  1. REQ消息体包含
    1. 生成时间戳
    2. 生成机器
    3. body
  2. RPLY消息体包含
    1. REQ/RSP生成时间戳
    2. REQ/RSP生成机器
    3. RPLY生成时间戳
    4. RPLY生成机器
    5. 状态
    6. 消息
  3. RSP消息提包含
    1. REQ生成时间戳
    2. REQ生成机器
    3. RSP生成时间戳
    4. RSP生成机器
    5. 状态
    6. 消息
  4. 生产者生成消息,接受反馈

一个主题理论上会创建多个redis主题:

  1. JD_REQ_{主题} 组消费模式
  2. JD_REQ_RPLY_{主题} 广播消费模式
  3. 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


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)

Uploaded Source

Built Distribution

JDistributer-0.0.2-py2.py3-none-any.whl (10.5 kB view details)

Uploaded Python 2 Python 3

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

Hashes for jdistributer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cb74af38ed2e00e84199f85804464632574cf874c4418e287ee49147902d534f
MD5 60cad5571c2743522fb70f48fa85d5c2
BLAKE2b-256 ecf48fae22f00c500f4b813e42c35fdedc54c994c123d5e61501ead50d0b5090

See more details on using hashes here.

File details

Details for the file JDistributer-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for JDistributer-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0aa0916e7e52f70709a28f37fbe3992d0f293ff65e47ab2f95d3aa8cdfc8e3ec
MD5 8181e6250f02918f459be443e1cedc7e
BLAKE2b-256 689447dfdbc0075249a62e3faa4e1dde4c0c8e8e4517ae167940fc8ca7efbe52

See more details on using hashes here.

Supported by

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