--- url: "http://www.enterpriseintegrationpatterns.com/CanonicalDataModel.html" titulek: "Canonical Data Model - Enterprise Integration Patterns" h1: "" popis: "How can you minimize dependencies when integrating applications that use different data formats?" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 15:34:32" znaku: 5089 slov: 428 kodovani: "utf-8" sha256: "02992f61d7529d80300b901e152622f0e876669b52f49d035dba00745a2405f8" --- | | Canonical Data Model[Messaging Patterns](index.html) » [Message Transformation](MessageTransformationIntro.html) | [Contents](toc.html)[⇐ Prev](Normalizer.html)[Next ⇒](ComposedMessagingExample.html) | | --- | --- | --- | I am designing several applications to work together through [*Messaging*](Messaging.html). Each application has its own internal data format. How can you minimize dependencies when integrating applications that use different data formats? Therefore, design a *Canonical Data Model* that is independent from any specific application. Require each application to produce and consume messages in this common format. The *Canonical Data Model* provides an additional level of indirection between application's individual data formats. If a new application is added to the integration solution only transformation between the *Canonical Data Model* has to created, independent from the number of applications that already participate. The use a *Canonical Data Model* seems complicated if only a small number of applications participate in the integration solution. However, the solution quickly pays off as the number of applications increases. If we assume that each application sends and receives message to and from each other application, a solution consisting of 2 applications would require only 2 [*Message Translator*](MessageTranslator.html)s if we translate between the applications' data formats directly whereas the *Canonical Data Model* requires 4 [*Message Translator*](MessageTranslator.html)s. A solution consisting of 3 applications requires 6 [*Message Translator*](MessageTranslator.html)s with either approach. However, a solution consisting of 6 applications requires 30(!) [*Message Translator*](MessageTranslator.html)s without a *Canonical Data Model* and only 12 [*Message Translator*](MessageTranslator.html)s when using a *Canonical Data Model*. ... Read the entire pattern in the book [Enterprise Integration Patterns](/books1.html) **Related patterns:** [*Format Indicator*](FormatIndicator.html), [*Message Channel*](MessageChannel.html), [*Message Router*](MessageRouter.html), [*Introduction to Message Routing*](MessageRoutingIntro.html), [*Message Translator*](MessageTranslator.html), [*Messaging*](Messaging.html), [*Messaging Mapper*](MessagingMapper.html), [*Shared Database*](SharedDataBaseIntegration.html) --- ## Integration Pattern Language [Message Construct.](MessageConstructionIntro.html) [Message](Message.html) [Command Message](CommandMessage.html) [Document Message](DocumentMessage.html) [Event Message](EventMessage.html) [Request-Reply](RequestReply.html) [Return Address](ReturnAddress.html) [Correlation Identifier](CorrelationIdentifier.html) [Message Sequence](MessageSequence.html) [Message Expiration](MessageExpiration.html) [Format Indicator](FormatIndicator.html) [Message Routing](MessageRoutingIntro.html) [Pipes-and-Filters](PipesAndFilters.html) [Message Router](MessageRouter.html) [Content-based Router](ContentBasedRouter.html) [Message Filter](Filter.html) [Dynamic Router](DynamicRouter.html) [Recipient List](RecipientList.html) [Splitter](Sequencer.html) [Aggregator](Aggregator.html) [Resequencer](Resequencer.html) [Composed Msg. Processor](DistributionAggregate.html) [Scatter-Gather](BroadcastAggregate.html) [Routing Slip](RoutingTable.html) [Process Manager](ProcessManager.html) [Message Broker](MessageBroker.html) [Message Transformation](MessageTransformationIntro.html) [Message Translator](MessageTranslator.html) [Envelope Wrapper](EnvelopeWrapper.html) [Content Enricher](DataEnricher.html) [Content Filter](ContentFilter.html) [Claim Check](StoreInLibrary.html) [Normalizer](Normalizer.html) [Canonical Data Model](CanonicalDataModel.html) [Messaging Endpoints](MessagingEndpointsIntro.html) [Message Endpoint](MessageEndpoint.html) [Messaging Gateway](MessagingGateway.html) [Messaging Mapper](MessagingMapper.html) [Transactional Client](TransactionalClient.html) [Polling Consumer](PollingConsumer.html) [Event-driven Consumer](EventDrivenConsumer.html) [Competing Consumers](CompetingConsumers.html) [Message Dispatcher](MessageDispatcher.html) [Selective Consumer](MessageSelector.html) [Durable Subscriber](DurableSubscription.html) [Idempotent Receiver](IdempotentReceiver.html) [Service Activator](MessagingAdapter.html) [Messaging Channels](MessagingChannelsIntro.html) [Message Channel](MessageChannel.html) [Point-to-Point Channel](PointToPointChannel.html) [Publish-Subscr. Channel](PublishSubscribeChannel.html) [Datatype Channel](DatatypeChannel.html) [Invalid Message Channel](InvalidMessageChannel.html) [Dead Letter Channel](DeadLetterChannel.html) [Guaranteed Delivery](GuaranteedMessaging.html) [Channel Adapter](ChannelAdapter.html) [Messaging Bridge](MessagingBridge.html) [Message Bus](MessageBus.html) [Systems Mgmt.](SystemManagementIntro.html) [Control Bus](ControlBus.html) [Detour](Detour.html) [Wire Tap](WireTap.html) [Message History](MessageHistory.html) [Message Store](MessageStore.html) [Smart Proxy](SmartProxy.html) [Test Message](TestMessage.html) [Channel Purger](ChannelPurger.html)