Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Idempotent Consumer from the EIP patterns is used to filter out duplicate messages.

This pattern is achieved by using implemented using the IdempotentConsumer class. This uses an Expression to calculate a unique message ID string for a given message exchange; this ID can then be looked up in the MessageIdRepository to see if it has been seen before; if it has the message is consumed; if its not then the message is processed and the ID is added to the repository.

...