views:

164

answers:

0

I'm trying to employ the WCF Publish/Subscribe framework described in Lowy's book "Programming WCF Services". But in some cases it is needed to synchronize between events.

For instance, if I have a client that is executing its business then it fires (publishes) an event and continues to execute until at one point it needs to block until acknowledgment from event handler (subscriber) is received.

I wonder, in that case, if it would be more logical to couple two components (publisher and subscriber) together by callbacks and skip the publish/subscribe framework used? But this way I'm afraid that our architecture may get unnecessary complexity.

Your feedback is much appreciated.