Issue #7619 has been reported by R.I. Pienaar.

----------------------------------------
Feature #7619: Creating of destinations and messages should be left to the 
connectors
https://projects.puppetlabs.com/issues/7619

Author: R.I. Pienaar
Status: Accepted
Priority: Normal
Assignee: R.I. Pienaar
Category: Core
Target version: 1.3.x
Keywords: 
Branch: 
Affected mCollective version: 


At present all over the place we call Util#make_target to create the middleware 
topics/queues etc and we have a fair bit of assumption built into mcollective 
about how middleware works.

We should instead create an object that represents a message - request and 
reply - that abstracts the messages.  The connector plugins should then 
determine how they will send these messages rather than the core app

When a message gets received we should:

 * Create a message object and store the received message and its 
metadata/headers there
 * The security plugins should decode/decrypt the message in this object and 
update it with the validated version
 * Today we associate the caller and reply-to header with a message throughout 
the code, we should instead simply send the request message so the entire 
source of the request is available throughout

When we choose to reply or create a new request we should:

 * Create a new message object
 * Set it in it abstract information like target agent, target node (for point 
to point) etc
 * The security plugins should receive this and update it with the encrypted 
view of the message
 * The connector plugin should then determine how best to emit the message and 
send it

This will ultimately allow us to become less dependent on the design of stomp 
and allow us to easier support other middleware but also to start using some of 
the advanced capabilities of middleware in our connectors.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to