vendredi 15 mai 2015

What design pattern best is best for this scenario?

I am fairly new to design patterns and have general understanding of GoF and few others. Here is a situation that I am trying to address.

I am designing a notification mechanism for an application. The application will build a "payload" for an event and submits to a "message bus" or "queue" for processing. I don't want the application to be coupled tightly to the messaging implemenation. Today I might use an on-premise messaging for example, MSMQ and may move to Amazon or Azure cloud and use their message queues.

I am trying to understand what design pattern might help me achieve this. I have considered AbstractFactory pattern that can give the correct implementation of the notification using some form of IoC.

Is this the right way? Any draft or shell class design will also help.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire