Adapter pattern
The Adapter pattern translates one interface (an object’s properties and methods) to another. Adapters allows programming components to work together that otherwise wouldn’t because of mismatched interfaces. The Adapter pattern is also referred to as the Wrapper Pattern.
One scenario where Adapters are commonly used is when new components need to be integrated and work together with existing components in the application.
Another scenario is refactoring in which parts of the program are rewritten with an improved interface, but the old code still expects the original interface.
Adapter dofactory – link
Class code: Adapter – 3D shape example
Class code: Adapter employee example
Class code: Adapter for flight system
RabbitMQ is a message-queueing software also known as a message broker or queue manager. Simply said; it is software where queues are defined, to which applications connect in order to transfer a message or messages.

A message can include any kind of information. It could, for example, have information about a process or task that should start on another application (which could even be on another server), or it could be just a simple text message. The queue-manager software stores the messages until a receiving application connects and takes a message off the queue. The receiving application then processes the message.
A message broker acts as a middleman for various services (e.g. a web application, as in this example). They can be used to reduce loads and delivery times of web application servers by delegating tasks that would normally take up a lot of time or resources to a third party that has no other job.

Possible message deliver mechanism:
- Work queues
- Publish/Subscribe
- Routing
- Topics
- RPC – remote procedure call (request-reply)
- Publisher confirms
RabbitMQ Enable Web Management Plugin
http://localhost:15672/
username: guest
password: guest 
Download the RabbitMQ prerequisite – link
Download the RabbitMQ – link
Installation tutorial – link
RabbitMQ demo code
Class code: Rabbit Listener
Class code: Rabbit Producer
More topics covered:
- different flavors of builder
- usage or RabbitMQ in asp.net rest
- observer less relevant today because of events
Links:


