Yes i have n rich clients operated by employees and one backend server
that processes them!
Chris,
if the filtering where of a static nature and did not alter then i
would agree with you.
The situation is this:
Client A sends an order for Customer x in ProfitCenter Z.
Client B has access to this Customer x in ProfitCenter Z.
Client C has no Access to ProfitCenter Z and hence no access to
Customer x.
All clients subscribe to the OrderComplete message.
Without filtering all client would get the OrderComplete message even
Client C who has no access. (Here i must do client side filtering in
order to prohibit showing the message)
Creating for every ProfitCenter a OrderComplete message is not an
option (obviously, they are create, updated, deleted daily).
My though is this (since i am using the same just with WCF and
Callbacks).
Before publishing the message (foreach client), check if the client
has access to the customer and send it.
In WCF i have the control of what will i send to each client (throug
callbacks).
Every time a fat-client connects to the service, he is added in the
callback list along with all ProfitCenters he is allowed to access.
On every callback i check if the order profitcenter and the user
profitcenter is matching. If it is a match then it is send else it
goes to the next fat-client callback.
My question is if it is possible to do something like that with
masstransit!
I am searching for an alternative to WCF and Callbacks because it is
not reliable and elegant.
Regards,
On Jun 28, 9:44 pm, Chris Patterson <
ch...@phatboyg.com> wrote:
> Yeah, I'm with Travis here. It's not something that I would typically do by
> choice, but the Distributor has a worker selection strategy that you could
> use to route the messages to specific workers based on some customer type.
> It really sounds like something that should be more explicitly modeled in
> the application domain however, since it appears to be a part of the
> business.
>
>
>
>
>
>
>
> On Tue, Jun 28, 2011 at 1:07 PM, Travis Smith <
tra...@legomaster.net> wrote:
> > You could, in theory, use the distributor to do that filtering. It's
> > about the only place we allow content based routing. Otherwise, just
> > build an endpoint that does that work and republishes it for you. I'm
> > against content based routing on principal but I would have to admit
> > I've done it before.
>
> > -Travis
>
> > On Tue, Jun 28, 2011 at 1:33 PM, Dru Sellers <
d...@drusellers.com> wrote:
> > > What is the network layout of this application as it relates to clients?
>
> > > -d
>