Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Identity and Metadata to Messages #3

Open
Mulkave opened this issue Dec 27, 2016 · 0 comments
Open

Add Identity and Metadata to Messages #3

Mulkave opened this issue Dec 27, 2016 · 0 comments

Comments

@Mulkave
Copy link
Member

Mulkave commented Dec 27, 2016

In order to identify producers, it could be helpful to have a proprietary message object that includes the body (data) that is usually sent by the user. A better way to explain this is through an example:

Producer A sends a BowlerMessage or BowlerMessageBody where the AMQPMessage's body property is the message body itself. That message contains the body and other metadata in a JSON format as such:

{
    "created_at": "DATETIME",
    "send_at":  "DATETIME",
    "body": "ENCODED JSON USER DATA",
    "producer": {
        "ip": "192.168.0.1",
        "name": "Facebook Ads Service",
        "subject": "Facebook Ads Estimated Reach - Audience Size",
        "queue_name": "facebook_ads_estimated_reach"
     }
}

The above is just an example to illustrate the idea, names and structure may change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant