Enterprise Integration Patterns Flashcards

1
Q

Message Channel

A

How does one application communicate with another using messaging?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can two applications connected by a message channel exchange a piece of information?

A

Message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can we perform complex processing on a message while maintaining independence and flexibility?

A

Pipes and Filters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can you decouple individual processing steps so that messages can be passed to different filters depending on a set of conditions?

A

Message Router

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can systems using different data formats communicate with each other using messaging?

A

Message Translator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does an application connect to a messaging channel to send and receive messages?

A

Message Endpoint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can the caller be sure that exactly one receiver will receive the document or perform the call?

A

Point-to-Point Channel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can the sender broadcast an event to all interested receivers?

A

Publish-Subscribe Channel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can the application send a data item such that the receiver will know how to process it?

A

Datatype Channel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How can a messaging receiver gracefully handle receiving a message that makes no sense?

A

Invalid Message Channel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What will the messaging system do with a message it cannot deliver?

A

Dead Letter Channel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How can the sender make sure that a message will be delivered even if the messaging system fails?

A

Guaranteed Delivery

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How can you connect an application to the messaging system so that it can send and receive messages?

A

Channel Adapter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How can multiple messaging systems be connected so that messages available on one are also available on the others?

A

Messaging Bridge

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an architecture that enables separate applications to work together but in a decoupled fashion such that applications can be easily added or removed without affecting the others?

A

Message Bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How can messaging be used to invoke a procedure in another application?

A

Command Message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How can messaging be used to transfer data between applications?

A

Document Message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

How can messaging be used to transmit events from one application to another?

A

Event Message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

When an application sends a message how can it get a response from the receiver?

A

Request-Reply

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

How does a replier know where to send the reply?

A

Return Address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

How does a requestor that has received a reply know which request this is the reply for?

A

Correlation Identifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

How can messaging transmit an arbitrarily large amount of data?

A

Message Sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

How can a sender indicate when a message should be considered stale and thus shouldn’t be processed?

A

Message Expiration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

How can a message’s data format be designed to allow for possible future changes?

A

The format indicator enables the sender to tell the receiver the format of the message. This way, a receiver expecting several possible formats knows which one a message is using and therefore how to interpret the message’s contents.

There are three main alternatives for implementing a format indicator:

Version Number – A number or string that that uniquely identifies the format. Both the sender and receiver must agree on which format is designated by a particular indicator.
Foreign Key – A unique ID—such as a filename, a database row key, a home primary key, or an Internet URL—that specifies a format document. The sender and receiver must agree on the mapping of keys to documents, and the format of the schema document.
Format Document – A schema that describes the data format. The schema document does not have to be retrieved via a foreign key or inferred from a version number, it is embedded in the message. The sender and the receiver must agree on the format of the schema.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

How do we handle a situation where the implementation of a single logical function (e.g. inventory check) is spread across multiple physical systems?

A

Content-Based Router

26
Q

How can a component avoid receiving uninteresting messages?

A

Message Filter

27
Q

How can you avoid the dependency of the router on all possible destinations while maintaining its efficiency?

A

Dynamic Router

During system start-up, each potential recipient sends a special message to the Dynamic Router on this control channel, announcing its presence and listing the conditions under which it can handle a message. The Dynamic Router stores the ‘preferences’ for each participant in a rule base. When a message arrives, the Dynamic Router evaluates all rules and routes the message to the recipient whose rules are fulfilled. This allows for efficient, predictive routing without the maintenance dependency of the Dynamic Router on each potential recipient.

28
Q

How do we route a message to a list of dynamically specified recipients?

A

Recipient List

29
Q

How can we process a message if it contains multiple elements each of which may have to be processed in a different way?

A

Splitter

30
Q

How do we combine the results of individual but related messages so that they can be processed as a whole?

A

Aggregator

31
Q

How can we get a stream of related but out-of-sequence messages back into the correct order?

A

Resequencer

32
Q

How can you maintain the overall message flow when processing a message consisting of multiple elements each of which may require different processing?

A

Composed Message Processor

33
Q

How do you maintain the overall message flow when a message needs to be sent to multiple recipients, each of which may send a reply?

A

Scatter-Gather

34
Q

How do we route a message consecutively through a series of processing steps when the sequence of steps is not known at design-time and may vary for each message?

A

Routing Slip

Attach a Routing Slip to each message, specifying the sequence of processing steps. Wrap each component with a special message router that reads the Routing Slip and routes the message to the next component in the list.

35
Q

How do we route a message through multiple processing steps when the required steps may not be known at design-time and may not be sequential?

A

Process Manager
Use a central processing unit, a Process Manager, to:

  • maintain the state of the sequence and
  • determine the next processing step based on intermediate results.
36
Q

How can you decouple the destination of a message from the sender and maintain central control over the flow of messages?

A

Message Broker

37
Q

How can existing systems participate in a messaging exchange that places specific requirements on the message format such as message header fields or encryption?

A

Envelope Wrapper

38
Q

How do we communicate with another system if the message originator does not have all the required data items available?

A

Content Enricher

39
Q

How do you simplify dealing with a large message when you are interested only in a few data items?

A

Content Filter

40
Q

How can we reduce the data volume of message sent across the system without sacrificing information content?

A

Claim Check

41
Q

How do you process messages that are semantically equivalent but arrive in a different format?

A

Normalizer

42
Q

How can you minimize dependencies when integrating applications that use different data formats?

A

Canonical Data Model

43
Q

How do you encapsulate access to the messaging system from the rest of the application?

A

Messaging Gateway

44
Q

How do you move data between domain objects and the messaging infrastructure while keeping the two independent of each other?

A

Messaging Mapper

45
Q

How can a client control its transactions with the messaging system?

A

Transactional Client

46
Q

How can an application consume a message when the application is ready?

A

Polling Consumer

47
Q

How can an application automatically consume messages as they become available?

A

Event-Driven Consumer

48
Q

How can a messaging client process multiple messages concurrently?

A

Competing Consumers

49
Q

How can multiple consumers on a single channel coordinate their message processing?

A

Message Dispatcher

50
Q

How can a message consumer select which messages it wishes to receive?

A

Selective Consumer

51
Q

How can a subscriber avoid missing messages while it’s not listening for them?

A

Durable Subscriber

52
Q

How can a message receiver deal with duplicate messages?

A

Idempotent Receiver

53
Q

How can an application design a service to be invoked both via various messaging technologies and via non-messaging techniques?

A

Service Activator

54
Q

How can we effectively administer a messaging system that is distributed across multiple platforms and a wide geographic area?

A

Control Bus

55
Q

How can you route a message through intermediate steps to perform validation testing or debugging functions?

A

Detour

56
Q

How do you inspect messages that travel on a point-to-point channel?

A

Wire Tap

57
Q

How can we effectively analyze and debug the flow of messages in a loosely coupled system?

A

Message History

58
Q

How can we report against message information without disturbing the loosely coupled and transient nature of a messaging system?

A

Message Store

59
Q

How can you track messages on a service that publishes reply messages to the Return Address specified by the requestor?

A

Smart Proxy

60
Q

What can be used to validate a component that is actively processing messages but garbles outgoing messages due to an internal fault?

A

Test Message

61
Q

Channel Purger

A

How can you keep ‘left-over’ messages on a channel from disturbing tests or running systems?